Skip to content

Instantly share code, notes, and snippets.

javascript:var d=document,w=window,f='https://twitter.com/share',l=d.location,e=encodeURIComponent,c=w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text;p='?url='+e(l.href)+'&text='+ e(c?c:d.title);a=function(){if(!w.open(f+p,'Tweet Button','toolbar=0,status=0,resizable=0,width=550,height=400,left=200,top=200'))l.href=f+'.new'+p};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}void(0);
@roamlog
roamlog / gist:738921
Created December 13, 2010 11:34
打开 www.v2ex.com 显示如下
Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 515, in __call__
handler.get(*groups)
File "/base/data/home/apps/v2ex/1.346841488429081261/main.py", line 68, in get
member = CheckAuth(self)
File "/base/data/home/apps/v2ex/1.346841488429081261/v2ex/babel/security/__init__.py", line 14, in CheckAuth
cookies = Cookies(handler, max_age = 86400 * 365, path = '/')
File "/base/data/home/apps/v2ex/1.346841488429081261/v2ex/babel/ext/cookies.py", line 6, in __init__
self._in = handler.request.cookies
File "/base/python_runtime/python_lib/versions/1/webob/__init__.py", line 985, in cookies
@roamlog
roamlog / iTunesIconForChina.rb
Last active August 29, 2015 13:56 — forked from ttscoff/itunesicon.rb
用于从 Appstore 中国店下载 app 图标的脚本
#!/usr/bin/ruby
# encoding: utf-8
#
# Grab iTunes Icon - Brett Terpstra 2014 <http://brettterpstra.com>
#
# Retrieve an iOS app icon at the highest available resolution
# All arguments are combined to create an iTunes search
# The icon for the first result, if found, is written to a filename based on search terms
#
# example: