This file contains hidden or 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
<dict> | |
<key>name</key> | |
<string>Git Modified Line</string> | |
<key>scope</key> | |
<string>git.changes.x</string> | |
<key>settings</key> | |
<dict> | |
<key>background</key> | |
<string>#272852</string> | |
</dict> |
This file contains hidden or 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
/* | |
Native FullScreen JavaScript API | |
CopyRight: Johndyer, http://johndyer.name/native-fullscreen-javascript-api-plus-jquery-plugin/ | |
------------- | |
Assumes Mozilla naming conventions instead of W3C for now | |
*/ | |
(function() { | |
var | |
fullScreenApi = { | |
supportsFullScreen: false, |
This file contains hidden or 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
(function(undefined){ | |
var _requirejs = document.createElement('script'); | |
_requirejs.src = "http://requirejs.org/docs/release/2.1.5/minified/require.js"; | |
_requirejs.type ="text/javascript"; | |
document.head.appendChild(_requirejs); | |
setTimeout(function(){ | |
require('http://code.jquery.com/jquery-1.9.1.min.js'.split(";")); | |
require('http://underscorejs.org/underscore-min.js'.split(";"),function(){ | |
require('http://backbonejs.org/backbone-min.js'.split(";")) | |
}); |
This file contains hidden or 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 dfd = $.Deferred(); | |
dfd.progress(function(arg){ console.log(arg,1)}); | |
dfd.notify('this is first time notify:I am jazz') | |
dfd.progress(function(arg){ console.log(arg,2)}); | |
dfd.notify('this is second time notify: I love this game'); | |
dfd.reject('sorry,badthing arise'); | |
dfd.progress(function(arg){ console.log(arg,3)}); | |
dfd.notify("this is third time notify: I will come back ?") | |
dfd.progress(function(arg){ console.log(arg,4)}); |
This file contains hidden or 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
;;(add-to-list 'load-path "~/.emacs.d/color-theme-6.6.0") | |
(let ((default-directory "~/.emacs.d/")) | |
(normal-top-level-add-subdirs-to-load-path)) | |
;("ELPA" . "http://tromey.com/elpa/") | |
;("gnu" . "http://elpa.gnu.org/packages/") | |
;("SC" . "http://joseito.republika.pl/sunrise-commander/") | |
(require 'package) |
This file contains hidden or 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
$title-color | |
color red | |
.a | |
@extends $title-color | |
.title-color2 | |
color red | |
.b | |
@extends .title-color2 |
This file contains hidden or 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
yum install build-essential autoconf libtool openssl-devel gcc git -y | |
cd /tmp/ | |
git clone --depth=1 https://github.com/madeye/shadowsocks-libev.git | |
cd shadowsocks-libev | |
./configure --disable-documentation | |
make && make install | |
mkdir -p ~/bin |
This file contains hidden or 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
#生成 RSA 私钥(传统格式的) | |
openssl genrsa -out rsa_private_key.pem 1024 | |
#将传统格式的私钥转换成 PKCS#8 格式的 | |
openssl pkcs8 -topk8 -inform PEM -in rsa_private_key.pem -outform PEM -nocrypt | |
#生成 RSA 公钥 |
This file contains hidden or 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
#!/bin/sh | |
# | |
# /etc/rc.d/init.d/docker | |
# | |
# Daemon for docker.com | |
# | |
# chkconfig: 2345 95 05 | |
# description: Daemon for docker.com | |
### BEGIN INIT INFO |
This file contains hidden or 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
function compile(template){ | |
var evalExpr = /<%=(.+?)%>/g; | |
var expr = /<%([\s\S]+?)%>/g; | |
template = template | |
.replace(evalExpr, '`);\n echo( $1 );\n echo(`') | |
.replace(expr, '`);\n $1 \n echo(`'); | |
template = 'echo(` ' + template + '`);'; | |
var script = ` |
OlderNewer