Skip to content

Instantly share code, notes, and snippets.

@raincoat
raincoat / simulate-trello-clipboard.js
Last active March 2, 2017 21:40
simulate-trello-clipboard
// copy code from http://stackoverflow.com/questions/17527870/how-does-trello-access-the-users-clipboard/17528590?utm_source=javascriptweekly&utm_medium=email
var utils = {
nodeName: function(node, name){
return !!(node.nodeName.toLowerCase() === name)
}
}
var textareaId = 'simulate-trello-clipboard'
, containerId = textareaId + '-container'
, container
@raincoat
raincoat / ppp.log
Last active December 19, 2015 10:49
Sun Jul 7 21:39:42 2013 : PPTP connecting to server 'us1.vpncloud.me' (192.155.87.22)...
Sun Jul 7 21:39:43 2013 : PPTP connection established.
Sun Jul 7 21:39:43 2013 : PPTP set port-mapping for en1, interface: 5, protocol: 0, privatePort: 0
Sun Jul 7 21:39:43 2013 : using link 0
Sun Jul 7 21:39:43 2013 : Using interface ppp0
Sun Jul 7 21:39:43 2013 : Connect: ppp0 <--> socket[34:17]
Sun Jul 7 21:39:43 2013 : sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x26893cdd> <pcomp> <accomp>]
Sun Jul 7 21:39:43 2013 : PPTP port-mapping for en1, interfaceIndex: 0, Protocol: None, Private Port: 0, Public Address: ac20ac9a, Public Port: 0, TTL: 0.
Sun Jul 7 21:39:43 2013 : PPTP port-mapping for en1 inconsistent. is Connected: 1, Previous interface: 5, Current interface 0
@raincoat
raincoat / gist:3523738
Created August 30, 2012 07:26
递归遍历
def listdir(path):
for file in os.walk(path):
if os.path.isdir(file):
listdir(path + '/' + file)
print('<br/>')
else:
print('<img src =' + file + '></img>')
@raincoat
raincoat / READNE.md
Created May 26, 2012 07:57
福州烟台X日游

时间

我是6月3日答辩~ 之后都有时间~

预算

  1. 快捷酒店 【120RMB / 天】
  2. 招待所 【60RMB / 天】

旅行方式