A colorized version of my recreation of an untitled GIF by PATAKK.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!d3.chart) d3.chart = {}; | |
d3.chart.brush = function() { | |
var g; | |
var data; | |
var width = 600; | |
var height = 30; | |
var dispatch = d3.dispatch(chart, "filter"); | |
function chart(container) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
icecomm.io|webrtc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head></head> | |
<body> | |
A demo page for fast prototyping. | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
s = status | |
co = checkout | |
p = push | |
c = commit | |
a = add | |
aa = add -A | |
ap = add -p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source. | |
# Will include all hosts the playbook is run on. | |
# Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html | |
- name: "Build hosts file" | |
lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present | |
when: hostvars[item].ansible_default_ipv4.address is defined | |
with_items: groups['all'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
++ timestamp | |
+++ date +%s.%N | |
++ echo 1448231881.012023753 | |
+ scriptstarttime=1448231881.012023753 | |
+ readonly INTERNAL_ERROR_CODE=123 | |
+ INTERNAL_ERROR_CODE=123 | |
+ exist_file_or_die /mnt/prog_joined.js | |
+ local file=/mnt/prog_joined.js | |
+ '[' '!' -f /mnt/prog_joined.js ']' | |
+ exist_file_or_die /mnt/data.in |
- 'a' - append after the cursor
- 'A' - append at the end of current line
:vimgrep
can help you to search through multiple files. It also tells you where you are now in the search. You can use:copen
to see all matches.:vnew
Open an empty buffer as a vertical split:%s/old/new/gc
Replace all old with new throughout file with confirmations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
www.gbtags.com试用的一些想法 | |
觉得理念挺好的,是一个专门属于前端的community。好的地方就不多说了吧,我就提存在的一些问题、以及个人建议: | |
1、文章发布、评论没有提供markdown的编辑器 | |
2、许多页面加载以及滚动的时候均存在比较严重的延迟,甚至卡死,http://www.gbtags.com/gb/rtcollabration/2933.htm页面完全无法加载(chrome挂了)。建议: | |
(1)取消部分animation,比如http://www.gbtags.com/gb/explore.htm和http://www.gbtags.com/gb/users.htm载入的时候由于<article>部分的animation过多,会造成很严重的延迟 | |
(2)就http://www.gbtags.com/gb/explore.htm来看,页面脚本占了生成代码将近1/2的分量,没有经过uglify压缩。建议压缩脚本 | |
3、标签没有搜索功能? | |
4、比较细节的一些地方:功能和设计其实很够用,很丰富,但是总觉得有些冗余。比如http://www.gbtags.com/gb/explore.htm中,比如我选择了以文本方式阅读,结果出来的就只是标题和“阅读全文”。这只是其中一个例子吧,我在设计上不是太符合一致性设计的原则,感觉稍乱了。 | |
以上的测试是在Chrome 29.0.1534.0和Firefox 23下面简单地测试了一下。 |