大家应该都有看到很多帖子中程序员,都会拥有个性的注释。有些脑洞大开,十分有趣,可以给枯燥的编程,带来一点不一样的感觉。最近发现一个可以将图片转为ASCII字符的有趣的网站。忍不住分享出来,希望大家喜欢。
网址如下:
使用方法:
1. 直接在From The Web 传网上图片的资源地址
1.1 查找图片并复制图片地址
- image.png
1.2 将复制好的图片地址复制到网页的From the Web
一栏中,按回车,或者点击Send
,等待跳转,当然你也可以选择,From your Computer
来选择一个本地图片进行处理。接下来就是等待跳转了。
- image.png
2. 回车后生成页面查看元素,把元素拷贝下来
2.1 在检查元素中查看元素
- image.png
2.2 找到需要复制的元素
- image.png
2.3 复制元素
- image.png
3. 在IDE里面全局替换所有的 为空格。替换
为空。删除多余的标签。
3.1 打开IDE,这里以goland
为例,粘贴复制的元素,并全局替换。
为空格
- image.png
3.2 将所有的<br>
替换为空。
- image.png
3.3 删除多余的标签以及空行。
- image.png
4. 多行注释,并添加到settings->Editor->File and Code Templates->go application&&go
4.1 选中剩余的有效部位,进行多行注释。
- image.png
4.2 添加到模板中
- image.png
4.3 新建文件,查看效果。
补充:
当你配置Go File的时候会出现以下内容,描述如何配置模板文件。
- image.png
变量 | 注释 |
---|---|
${GO_PACKAGE_NAME} | 新建文件所在包的包名 |
${USER} | 当前系统登录用户名 |
${DATE} | 当前系统日期 |
${TIME} | 当前系统时间 |
${YEAR} | 当前年 |
${MONTH} | 当前月 |
${MONTH_NAME_SHORT} | 当前月简写(默认显示月份前三个字母) |
${MONTH_NAME_FULL} | 当前月的全称 |
${DAY} | 本月当前日 |
${HOUR} | 当前小时数 |
${MINUTE} | 当前分钟数 |
${PROJECT_NAME} | 当前工程名 |
// Copyright ${YEAR} by ${USER}. All rights reserved.
// 开发团队 : 鸡中之霸
// 开发人员 : ${USER}
// 开发时间 : ${DATE} ${TIME}
// 文件名称 : ${NAME}.PY
// 工程名称 : ${PROJECT_NAME}
// 开发工具 : ${PRODUCT_NAME}
//
/* ...
...OO88OO. .
. . ONNNNZ..
...88..=NNNN=.O8$,.
.IDNNN~.NNNN.ODNND7..
. .ONNNNNNZONNO8NNNNN8+..
.~DNNNNNONNONNNNOI.. .
..........ONNNNNNNNN8,...... .
..............~8NNNND87,.,,.......
. ..O++++++++++++++++++++++++++++++$,.
. .Z++++++++++++++++++++++++++++++++O.
..,+++++++++++++++++++++++++++++++++?Z...
..O++++++++++++++++++++++++++++++++++7...
....O++++++++++++++++++++++++++++++++++++O...
..ZOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO..
. INNNNND ..NNNNNNNNNNNNNNNNNNNND..NNNNNNNN..
..:ONNNN,. .DNNNNNNNNO+??$NNNNNNN.?NNNNNNNNO..
..O7NNN....NNNNNNNNNO?++++ONNNN8.8NNNNNNNNNO..
.~I+IZOOOOOOOOOOOOOO+++I+++OOOO?ODDDD8OOOOI+8..
....O+++++++++++++++++++II+?$++++++++++++++++++Z,.. .
..O++++++++++++++++++++Z7O88OO++++++++++++++++++8.. .
...77++++++++++++++++++++++O+++O+++++++++++++++++++$+O.....
..O++++++++++++++++++++++++++?=+++++++++++++++++++++O+O~...
...Z+++7$?+++++++++++++++++++++++++++++++++++++++++++++O7++O..
..8+++$7Z+++++++++++++++++++++++++++++++++++++++++++++++Z7++O.
.O++777Z++++++++++++++++++++++IZOO$?++++++++++++++++++++O7++++8..
...O++7777O+++++++++++++++++++++O+++++O++++++++++++++++++++7$7++++O,
..8++7777$I++++++++++++++++++++++++++=++++++++++++++++++++++O7?++++O...
.O+++7$77O+++++++++++++++++++++++Z+++I++++++++++++++++++++++O77+++++8..
=?+++77Z$Z++++++++++++++++++++++7=++++O++++++++++++++++++++++O7++++++:.
..O++++777O+++++++++++++++++++++++O+++++??+++++++++++++++++++++O77+++++O.
...+++++777O++++++++++++++++++++++++++++++O+++++++++++++++++++++Z$$++++++O,..
...O++++77$7++++++++++++++++++++++O+++++++I?+++++++++++++++++++++O7I+++++7?..
87+++77O+++++++++++++++++++++++I++++++++O+++++++++++++++++++++O77++++++O..
.O7++77O++++++++++++++++++++++O=++++++++$+++++++++++++++++++++Z77++++++O~.
.Z$7I7$?++++++++++++++++++++++O++++++++++O+++++++++++++++++++++$77++++++O.
..O777O++++++++++++++++++++++?+++++++++++O+++++++++++++++++++++O77++O+++O.
877O++++++++++++++++++++++++O+++++++=O++++++++++++++++++++++O777+++++OI
.O7++++++++++++++++++++++++++Z7++++O?+++++++++++++++++++++++?777+++++OO
..O++++++++++++++++++++++++++++ZOI$++++++++++++++++++++++?$8N$77++I++OO.
...DNNN8OOOO$I??+++++++++++++++++++++++++++++++++?ZOOO8NNNNNN777++$++O.
ONNNNNNNNNNNNNNNNNNNNDNDDD88888D8DDDDDNNNNNNNNNNNNNNNNNNN$O$7I+Z++O.
.7DNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNO.,77ZO+$7..
...8NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNO+...,..,...
. .:ONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNO... .......
...~DNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNND7...
...8NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNND... .
.DNNNN8..........,=??III?+=:,.........ONNNN8..
..ONNNDO...............................ZNNNNO..
..ONNNN$. ...DNNNO..
...8NN8... ...ZNNN?..
...ONNO... .NN8..
.:ONNNO.. .DNND8.
.,,..... ...:~== ..
........ ..........
*/
// 鸡霸护体,没有BUG
package ${GO_PACKAGE_NAME}
PS: 建议找一些背景单一色的图片。希望大家能找到自己喜欢的图片。
网友评论