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 mycode() { | |
var vid = document.getElementsByTagName('video')[0]; | |
vid.crossOrigin = "Anonymous"; | |
var can = document.createElement('canvas'); | |
var ctx = can.getContext('2d'); | |
var a = document.createElement('a'); | |
var btn = document.createElement('button'); | |
btn.innerText = "截图"; |
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 mycode() { | |
var can = document.createElement('canvas'); | |
var ctx = can.getContext('2d'); | |
var a = document.createElement('a'); | |
var btn = document.createElement('button'); | |
btn.innerText = "截图"; | |
btn.style.height = "36px"; | |
btn.style.width = "72px"; |
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
payurl.txt | |
setup.sh | |
ctrl.sh | |
*.ova | |
adt-bundle-mac-x86_64-20140702/ | |
*.zip | |
env/* | |
gm/* | |
*.dmg | |
*.apk |
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 | |
from __future__ import print_function | |
import os | |
import sys | |
import string | |
import logging | |
import argparse | |
import itertools | |
from collections import defaultdict | |
from subprocess import check_output, Popen, PIPE |
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
<html> | |
<head> | |
<script src="d3.v3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<div id="graph"></div> | |
<script type="text/javascript"> | |
var options = ['linear', 'linear-closed', 'step', 'step-before', 'step-after', 'basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'monotone']; | |
d3.select('body').insert('select', ':first-child') | |
.selectAll('option') |
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
#coding: utf8 | |
import urllib2 | |
import urllib | |
import os | |
import re | |
from urlparse import urlparse | |
import time | |
import getopt | |
import sys |
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
import os | |
import sys | |
import datetime | |
import poplib | |
import getopt | |
import email | |
import re | |
pwd = os.path.dirname(os.path.realpath(__file__)) |
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
#coding: utf8 | |
import os | |
import sys | |
import re | |
import urllib2 | |
import time | |
from headers import headers | |
cwd = os.path.join(os.getcwd(), os.path.dirname(sys.argv[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
#!/bin/bash | |
function f() { | |
sleep "$1" | |
echo "$1" | |
} | |
while [ -n "$1" ] | |
do | |
f "$1" & | |
shift | |
done |
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
#coding: utf8 | |
import sys | |
import urllib2 | |
from getopt import getopt | |
from re import findall, S, sub | |
def GET(url, headers={}, *args, **kw): | |
req = urllib2.Request(url) | |
for key, val in headers.items(): |
NewerOlder