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
<script>゚ω゚ノ= /`m´)ノ ~┻━┻ //*´∇`*/ ['_']; o=(゚ー゚) =_=3; c=(゚Θ゚) =(゚ー゚)-(゚ー゚); (゚Д゚) =(゚Θ゚)= (o^_^o)/ (o^_^o);(゚Д゚)={゚Θ゚: '_' ,゚ω゚ノ : ((゚ω゚ノ==3) +'_') [゚Θ゚] ,゚ー゚ノ :(゚ω゚ノ+ '_')[o^_^o -(゚Θ゚)] ,゚Д゚ノ:((゚ー゚==3) +'_')[゚ー゚] }; (゚Д゚) [゚Θ゚] =((゚ω゚ノ==3) +'_') [c^_^o];(゚Д゚) ['c'] = ((゚Д゚)+'_') [ (゚ー゚)+(゚ー゚)-(゚Θ゚) ];(゚Д゚) ['o'] = ((゚Д゚)+'_') [゚Θ゚];(゚o゚)=(゚Д゚) ['c']+(゚Д゚) ['o']+(゚ω゚ノ +'_')[゚Θ゚]+ ((゚ω゚ノ==3) +'_') [゚ー゚] + ((゚Д゚) +'_') [(゚ー゚)+(゚ー゚)]+ ((゚ー゚==3) +'_') [゚Θ゚]+((゚ー゚==3) +'_') [(゚ー゚) - (゚Θ゚)]+(゚Д゚) ['c']+((゚Д゚)+'_') [(゚ー゚)+(゚ー゚)]+ (゚Д゚) ['o']+((゚ー゚==3) +'_') [゚Θ゚];(゚Д゚) ['_'] =(o^_^o) [゚o゚] [゚o゚];(゚ε゚)=((゚ー゚==3) +'_') [゚Θ゚]+ (゚Д゚) .゚Д゚ノ+((゚Д゚)+'_') [(゚ー゚) + (゚ー゚)]+((゚ー゚==3) +'_') [o^_^o -゚Θ゚]+((゚ー゚==3) +'_') [゚Θ゚]+ (゚ω゚ノ +'_') [゚Θ゚]; (゚ー゚)+=(゚Θ゚); (゚Д゚)[゚ε゚]='\\'; (゚Д゚).゚Θ゚ノ=(゚Д゚+ ゚ー゚)[o^_^o -(゚Θ゚)];(o゚ー゚o)=(゚ω゚ノ +'_')[c^_^o];(゚Д゚) [゚o゚]='\"';(゚Д゚) ['_'] ( (゚Д゚) ['_'] (゚ε゚+(゚Д゚)[゚o゚]+ (゚Д゚)[゚ε゚]+(゚ー゚)+ (゚ー゚)+ (゚Д゚)[゚ε゚]+((゚ー゚) + (゚Θ゚))+ (c^_^o)+ (゚Д゚)[゚ε゚]+(゚ー゚)+ ((゚ー゚) + (o^_^o))+ (゚Д゚)[゚ε゚]+(゚ー゚)+ (o^_^o)+ (゚Д |
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
import java.util.ArrayList; | |
import java.util.Collections; | |
/** | |
* 分馒头算法 | |
* 秋香需要按照3:4:5:6的比例把馒头分给江南四大才子9527、9528、9529、9530这4人, | |
* 让每个人领到馒头的时间尽可能分散,两次领到馒头的时间间隔保持不变,以免出现时而吃不完、时而不够吃的情况。 | |
*/ | |
public class ManTouQueue { | |
public static void main(String[] args) { |
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
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) | |
} |
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
# Pre-operation for some non-standard Chinese font file | |
Open("font_b.ttf") | |
SelectAll() | |
ScaleToEm(1024) | |
Generate("temp.ttf", "", 0x14) | |
Close() | |
# Open English font and merge to the Chinese font | |
Open("font_a.ttf") | |
SelectAll() |
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
#!/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 |
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
/** | |
* 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(); |
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
#!/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 |
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
global !p | |
import string, vim | |
import textwrap | |
_snips_fns = {} | |
def py(*args): | |
import re | |
old_a = vim.eval('@a') |
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
global !p | |
import string, vim | |
import textwrap | |
_snips_fns = {} | |
def py(*args): | |
import re | |
old_a = vim.eval('@a') |
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
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(); |
OlderNewer