This file contains hidden or 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
#!/usr/bin/python | |
# coding: utf-8 | |
from xml.dom.minidom import Document | |
import os, glob, random | |
DOC = Document() #创建DOM文档对象 | |
def createTime(fnode): | |
'''生成starttime节点''' |
This file contains hidden or 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
; #!/usr/bin/python | |
; x = 2 | |
; y = 5 | |
; fun = 6*(x-y)*(5*(x+y)-15)/28 | |
; print(hex(fun)) | |
; 设置数据段 | |
DATA SEGMENT | |
X DB 2 ;变量X | |
Y DB 5 ;变量Y |
This file contains hidden or 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
(function() { | |
window.URL = function(href) { | |
this.href = href; | |
this.link = document.createElement('a'); | |
this.link.href = href; | |
this.parse(this); | |
}; | |
window.URL.prototype = { |
This file contains hidden or 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
# hosts | |
/etc/hosts | |
# dotfile | |
~/.config/smplayer/smplayer.ini | |
~/compiz_bacpup.profile | |
~/_gdbinit | |
~/.remmina/ | |
~/.bashrc | |
~/.zshrc |
This file contains hidden or 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
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
import re, os | |
name = 'Video Name' | |
num = 1 | |
for line in file('uri', 'r'): | |
p = re.compile(r'\..{1,5}\?') |
This file contains hidden or 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
.pagination | |
@extend .clearfix | |
> li | |
display inline | |
float left | |
a, span | |
+xs-layout() | |
padding 3px 7px | |
font-size 14px | |
+sm-layout() |
This file contains hidden or 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
let M = transformer#middle() | |
let S = transformer#source() | |
call transformer#cmd('Html2jade') | |
\.src(S.smart()) | |
\.stream( | |
\ M.pipe('html2jade - --donotencode --bodyless'), | |
\ M.smart() | |
\) |
This file contains hidden or 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
gulp.task 'copy', -> | |
gulp.src 'assets/**' | |
.pipe plumber() | |
.pipe gulp.dest 'public/assets' | |
gulp.task 'jade', -> | |
gulp.src ['jade/**/*.jade', '!jade/common/**'] | |
.pipe plumber() | |
.pipe jade | |
locals: |
This file contains hidden or 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
#!/usr/bin/env bash | |
i=0 | |
while [[ $i -lt 10000 ]] ; do | |
curl -s "http://dmxz.zerodm.net/e/public/ViewClick/?classid=2&id=9003&addclick=1" > /dev/null | |
((i++)) | |
done | |
0 |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<select> | |
<option value='110000'> | |
北京市 | |
</option> | |
<option value='110100'> | |
北京市北京市市辖区 | |
</option> | |
<option value='110101'> | |
北京市北京市东城区 |
OlderNewer