架设好 shadowsocks 服务端,在路由器上安装 shadowsocks 客户端,并配置 /etc/config/shadowsocks.json ,假设本地监听端口为 1080 。启动 shadowsocks
/etc/init.d/shadowsocks start
安装 privoxy openwrt 版。
Handlebars.registerHelper('loc', function(property, fn) { | |
var str; | |
// we are bound to a value, it is now the context | |
if (fn.contexts && typeof fn.contexts[0] === 'string') { | |
str = fn.contexts[0]; | |
// Convention, start all localization keys with _ | |
} else if (property[0] === '_') { | |
str = property; |
// 仅支持 8 种类型的 day | |
// 20120409 | 2012-04-09 | 2012/04/09 | 2012.04.09 | 以上各种无 0 的状况 | |
var isDate = function (text) { | |
var reg = /^([1-2]\d{3})([-/.])?(1[0-2]|0?[1-9])([-/.])?([1-2]\d|3[01]|0?[1-9])$/ | |
, taste, validDate, yyyy, mm, dd; | |
if (!reg.test(text)) return false; | |
taste = reg.exec(text); | |
year = taste[1], month = taste[3], day = taste[5]; |
{ | |
"cmd": ["javac", "$file_name"], | |
"cmd": ["java", "$file_base_name"], | |
"working_dir": "${project_path:${folder}}", | |
"selector": "source.java" | |
} |
Download and unzip the tar.gz: | |
http://tomcat.apache.org/download-70.cgi | |
install: | |
sudo mkdir /usr/local | |
sudo mv ~/Downloads/apache-tomcat-7.0.* /usr/local | |
sudo ln -s /usr/local/apache-tomcat-7.0.* /Library/Tomcat | |
sudo chown -R <your OSX username> /Library/Tomcat | |
sudo chmod +x /Library/Tomcat/apache-tomcat-7.0.*/bin/*.sh |
# XAMPP | |
sudo ln -s /Applications/XAMPP/xamppfiles/var/mysql/mysql.sock /var/mysql/mysql.sock | |
# MAMP | |
sudo ln -s /Applications/MAMP/tmp/mysql/mysql.sock /var/mysql/mysql.sock | |
# AMPPS | |
sudo ln -s /Applications/AMPPS/mysql/tmp/mysql.sock /var/mysql/mysql.sock |
define( 'ALLOW_UNFILTERED_UPLOADS', true ); |
IE6 Only | |
================== | |
_selector {...} | |
IE6 & IE7 | |
================== | |
*html or { _property: } | |
IE7 Only | |
================== |
// this setup assumes you are using gulp-config for file.src & file.dest | |
// but can be adapted to vanilla easily. | |
'use strict'; | |
var transform = require('vinyl-transform'), | |
browserify = require('browserify'), | |
watchify = require('watchify'), | |
// consider using gulp-load-plugins |
/** | |
* Like, basically PERFECT scrollbars | |
*/ | |
/* | |
It's pure CSS. | |
Since a quick google search will confirm people going crazy about Mac OS Lion scrollbars... | |
this has no fade-out effect. | |
In Mac OS Lion, the lowest common denominator is always showing scrollbars by a setting. |