Skip to content

Instantly share code, notes, and snippets.

View JohnWong's full-sized avatar
🎯
Working hard

John Wong JohnWong

🎯
Working hard
View GitHub Profile
@JohnWong
JohnWong / 2g-profile
Created December 5, 2015 14:58
2G弱网配置
in 100
loss 10
delay 250
out 150
loss 10
delay 250
dns 200
@JohnWong
JohnWong / bpms-batch-ignore
Created December 14, 2015 07:01
批量忽略工作流平台人物
$("span.show-action").each(function(idx,ele){$.get("https://bpms.alibaba-inc.com/workdesk/taskcenter/ignoreTask.jsonp?sourceId=AliPayApprove&systemType=AliPay&taskId=" + $(ele).data("value").taskId)})
import lldb
import re
import shlex
# This script allows Xcode to selectively ignore Obj-C exceptions
# based on any selector on the NSException instance
def getRegister(target):
if target.triple.startswith('x86_64'):
return "rdi"
ffmpeg -i koubei.mp4 -i taobao.mp4 -i pdd.mp4 -filter_complex "[0:v]pad=iw*3:ih[a];[a][1:v]overlay=w[b];[b][2:v]overlay=w*2" out.mp4
# sudo gem install json icalendar
require 'rubygems'
require 'open-uri'
require 'json'
require 'icalendar'
# sessions_data = JSON.parse(open("http://developer.apple.com/wwdc/data/sessions.json").read)["SessionsData"]
sessions_raw = '[{