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 python | |
#-*- coding:utf-8 -*- | |
import sys | |
import urllib | |
import os | |
from shutil import copyfile | |
from datetime import datetime | |
HOST_START_FLAG = '#Hosts 开始' |
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
############################################### | |
[loggers] | |
keys=root | |
[logger_root] | |
level=INFO | |
handlers=console,file | |
############################################### | |
[handlers] | |
keys=console,file | |
[handler_console] |
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 timer = null; | |
function autoFrameHeight() { | |
timer && clearTimeout(timer); | |
var frame = document.getElementById('win'); | |
var currHeight = 0; | |
try { | |
if (frame.contentDocument && frame.contentDocument.body.offsetHeight) { | |
frame.height = frame.contentDocument.body.offsetHeight; | |
} else if (frame.document && frameid.document.body.scrollHeight) { | |
frame.height = frame.document.body.scrollHeight; |
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
; Summary: My GFW List | |
; Author: greatghoul | |
; Date: 2013-04-17 | |
; URL: https://raw.github.com/gist/2907999/gfwlist.txt | |
#BEGIN | |
[Wildcard] | |
*://*.google.*/* |
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 s1 = '%{1} and %{2}!'; | |
// console.log('source: ' + s1); | |
// console.log('target: ' + fmt(s1, 'ask', 'learn')); | |
// | |
// var s2 = "%{name} is %{age} years old, his son's name is %{sons[0].name}"; | |
// console.log('source: ' + s2); |
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
[Adblock Plus 1.1] | |
! Title: My AdBlock Filters | |
www.86bts.com##IFRAME[id="__KR_LM_Frame"][name="__KR_LM_Frame"] | |
www.86bts.com##IFRAME[id="xcy_frame_*"][name="xcy_frame_*"] | |
www.86bts.com##IFRAME[id="cproIframe*"] |
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
60.28.250.194:82 | |
121.15.167.231:8080 | |
122.72.0.6:80 | |
114.80.240.6:808 | |
202.112.114.17:3128 | |
221.176.14.73:80 | |
122.113.28.52:3128 | |
218.247.138.40:80 | |
211.144.76.7:8181 | |
60.190.129.52:3128 |
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
#-*- coding: utf-8 -*- | |
from flask import Flask, session, render_template_string | |
app = Flask(__name__) | |
app.config.update( | |
DEBUG = True, | |
SECRET_KEY = 'suckmycock!', | |
PERMANENT_SESSION_LIFETIME = 10) | |
@app.route('/session') |
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
package com.pengo.capture; | |
import javax.swing.JFrame; | |
import java.awt.BorderLayout; | |
import java.awt.Dimension; | |
import java.awt.Graphics2D; | |
import java.awt.image.BufferedImage; | |
import java.io.InputStream; | |
import javax.media.MediaLocator; | |
import javax.swing.JPanel; |
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 python | |
# -*- coding: utf-8 -*- | |
''' | |
@author: dawn | |
''' | |
import urllib, urllib2, cookielib, json | |
from datetime import datetime | |
EMAIL = '[email protected]' |
OlderNewer