Skip to content
View .jshintrc
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
// * set all enforcing options to true
View variables_case.js
##### 变量大小写的结论
* 构造器 Class、Object 用 TheSomeone // 先祖的权威
* 方法名称 doSomething // 动宾,够醒目
* 文件名称 the_file // 网络传输可能会忽略大小写、可读性
* 普通变量 some_variables // 可读性
* CSS class: the-class-name
* CSS id: the_some_one
View weibo_ads_killer.js
// ==UserScript==
// @name 铲除一切害人虫
// @description 移除我想移除,留下我想留下
// @match*
// @match http://**
// @match*
// @version 1.0
// ==/UserScript==
// 在这里添加你想要去掉的dom的id
View md5 fool
crypto = require('crypto')
md5_url = (url) -> crypto.createHash('md5').update(url).digest("hex")[0..6]
h = {}
a = []
for r in [1..100000]
z = md5_url(Math.random() + '')
if !h[z]
a.push z
h[z] = 1
View colorful.html
<!DOCTYPE html>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script src="/jquery-1.js" type="text/javascript" charset="utf-8"></script>
<script src="/modernizr.js" type="text/javascript" charset="utf-8"></script>
<script src="/mustache.js" type="text/javascript" charset="utf-8"></script>
# This is probably because you have a too recent version of bundler installed. Integrity v22 is not compatible with bundler > 0.9, but relies on functionality that was in removed in the subsequent version. In my case I installed bundler 0.9 before I ran bundle install:
gem install bundler --version=0.9
View Textmate bundles
# Textmate essential bundles
cd ~/Library/Application\ Support/TextMate/Pristine\ Copy/Bundles
# mkdir -p cd /Applications/
git clone git:// Ack.tmbundle
git clone git://
git clone git:// "Ruby Saas.tmbundle"
git clone git:// Cucumber.tmbundle
git clone git:// JavaScript\ Blue\ Ridge.tmbundle
git clone git:// nginx.tmbundle
Global setup:
Download and install Git
git config --global "panfu"
git config --global
Next steps:
mkdir mochiweb_example
cd mochiweb_example
git init
touch README
Something went wrong with that request. Please try again.