Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
import java.io.*; | |
import java.nio.file.*; | |
import java.security.*; | |
import java.security.cert.*; | |
import javax.net.ssl.*; | |
import org.bouncycastle.jce.provider.*; | |
import org.bouncycastle.openssl.*; | |
public class SslUtil |
function (sInput){ | |
var sOutput=''; | |
for(var i=0,c=sInput.length;i<c;i++){ | |
var nChar=sInput.charCodeAt(i); | |
if(nChar>=33&&nChar<=126){ | |
sTmp=String.fromCharCode(33+(((nChar-33)+47)%94)); | |
sOutput+=sTmp | |
}else{ | |
sOutput+=sInput.charAt(i) | |
} |
#!/bin/bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin | |
export PATH | |
#定义变量 | |
#授权文件自动生成url | |
APX=http://soft.91yun.org/soft/serverspeeder/apx1.php | |
#安装包下载地址 | |
INSTALLPACK=http://soft.91yun.org/soft/serverspeeder/91yunserverspeeder.tar.gz |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
augroup EventLoggin | |
autocmd! | |
autocmd BufNewFile * call s:Log('BufNewFile') | |
autocmd BufReadPre * call s:Log('BufReadPre') | |
autocmd BufRead * call s:Log('BufRead') | |
autocmd BufReadPost * call s:Log('BufReadPost') | |
autocmd BufReadCmd * call s:Log('BufReadCmd') | |
autocmd FileReadPre * call s:Log('FileReadPre') | |
autocmd FileReadPost * call s:Log('FileReadPost') | |
autocmd FileReadCmd * call s:Log('FileReadCmd') |
/** | |
* For Google Voice | |
* @Author zbinlin <zbinlin@outlook.com> | |
*/ | |
var sleep = delay => new Promise(resolve => setTimeout(resolve, delay)); | |
var composeClick = function x(btn) { | |
var rect = btn.getBoundingClientRect(); | |
var x = rect.clientX + rect.width * Math.random(); | |
var y = rect.clientY + rect.height * Math.random(); |
#!/usr/bin/env zsh | |
print_progress () print -R $'\e[32m'"$*"$'\e[0m' >&2 | |
print_error () print -R $'\e[31m'"Error: $*"$'\e[0m' >&2 | |
# Obvious parameters | |
vid=f00213kcpwl | |
defn=shd | |
# To be extracted from browser's network inspector |
global !p | |
import string, vim | |
import textwrap | |
_snips_fns = {} | |
def py(*args): | |
import re | |
old_a = vim.eval('@a') |
global !p | |
import string, vim | |
import textwrap | |
_snips_fns = {} | |
def py(*args): | |
import re | |
old_a = vim.eval('@a') |
var http=require("http"),https=require("https"),fs=require("fs"); | |
var exec = require('child_process').execFile; | |
var UA = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.89 Safari/537.36"; | |
//从12306获取图片 | |
getImg().then(function(){ | |
// 改变图片尺寸 | |
return resizeImg(); | |
}).then(function(){ | |
// 把图片裁剪成8个小图片 | |
return cropImg(); |