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
// ==UserScript== | |
// @name hide douban feeds | |
// @namespace http://houkanshan.github.io/ | |
// @version 0.6.0 | |
// @description I dont care. | |
// @match http*://www.douban.com/* | |
// @require http://libs.baidu.com/underscore/1.3.3/underscore-min.js | |
// @require http://libs.baidu.com/jquery/2.0.3/jquery.min.js | |
// @copyright 2014+, Houkanshan | |
// ==/UserScript== |
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/bash | |
for (( i=0; i<100; i++ )); do | |
echo $i | |
convert \ | |
-size 165x165 \ | |
xc:white \ | |
-pointsize 100 \ | |
-fill black\ | |
-gravity center \ |
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
From 28e484469ef9fcee1bdd1820afc1897a0b60ba91 Mon Sep 17 00:00:00 2001 | |
From: houmai <[email protected]> | |
Date: Wed, 26 Feb 2014 10:49:17 +0800 | |
Subject: [PATCH] add self as keyword. | |
--- | |
syntax/javascript.vim | 5 ++++- | |
1 file changed, 4 insertions(+), 1 deletion(-) | |
diff --git a/syntax/javascript.vim b/syntax/javascript.vim |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
</head> | |
<body> | |
<canvas></canvas> | |
<span class="count"></span> |
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
// background transparency | |
background-transparency(color, alpha = 1) | |
ms-color = argb(color, alpha) | |
background rgb(color) | |
background rgba(color, alpha) | |
.lt-ie8 & | |
zoom 1 | |
.lt-ie9 & | |
background transparent | |
filter s('progid:DXImageTransform.Microsoft.gradient(startColorstr=%s,endColorstr=%s)', ms-color, ms-color) |
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
// https://code.google.com/p/v8/wiki/JavaScriptStackTraceApi | |
function customPrepare(error, trace) { | |
return trace | |
} | |
function getStack() { | |
var stack | |
var oldPrepare = Error.prepareStackTrace | |
Error.prepareStackTrace = customPrepare |
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 | |
debug_rex='/console.log/' | |
debug_print_rex=$debug_rex'p' | |
debug_del_rex=$debug_rex' d' | |
add_debug_patch='.add-debug.patch' | |
del_debug_patch='.del-debug.patch' | |
git_work_dir="$(git rev-parse --show-toplevel)" | |
fake_file="$git_work_dir/.fake_file" | |
cur_dir="$(pwd)" |
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/bash | |
# for git < 1.7.2 | |
# from http://stackoverflow.com/questions/1994463/how-to-cherry-pick-a-range-of-commits-and-merge-into-another-branch/1994491#1994491 | |
if [ -z $1 ]; then | |
echo "Equivalent to running git-cherry-pick on each of the commits in the range specified."; | |
echo ""; | |
echo "Usage: $0 start^..end"; | |
echo ""; |
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
div.box | |
div.inner1 | |
div.inner2 |