newer versions of phantomjs can be built on CentOS 5.5 out-of-the-box. refer to the build instructions at http://phantomjs.org/build.html
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
;(global-set-key "\C-h" 'backward-delete-char) | |
; | |
;(global-font-lock-mode t) | |
;(setq transient-mark-mode t) | |
;(set-face-background 'region "indianred") | |
;(tool-bar-mode 0) | |
;(show-paren-mode t) | |
;(setq w3m-home-page "http://www.google.com") |
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
SELECT LENGTH(REPLACE(BIN(7), '0', '')); |
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
diff --git a/buildlibxml.py b/buildlibxml.py | |
index bfcf3e4..7bf36e5 100644 | |
--- a/buildlibxml.py | |
+++ b/buildlibxml.py | |
@@ -284,8 +284,11 @@ def build_libxml2xslt(download_dir, build_dir, | |
}) | |
else: | |
env.update({ | |
- 'CFLAGS' : "-arch ppc -arch i386 -arch x86_64 -O2", | |
- 'LDFLAGS' : "-arch ppc -arch i386 -arch x86_64", |
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
# Repository developers | |
cd /path/to/somewhere | |
git clone https://github.com/kergoth/git-hooks | |
export PATH=/path/to/somewhere/git-hooks:$PATH | |
cd /path/to/project | |
git hooks --install |
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
echo '/usr/local/lib/python2.6/site-packages/' | sudo tee /Library/Python/2.6/site-packages/homebrew.pth |
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
// ==UserScript== | |
// @name Stack Exchange search box grower 1.0 | |
// @namespace stackoverflow | |
// @description Make Stack Exchange search box grow incrementally | |
// @include http://stackoverflow.com/* | |
// @include http://*.stackoverflow.com/* | |
// @include http://*.stackexchange.com/* | |
// @include http://serverfault.com/* | |
// @include http://superuser.com/* | |
// @include http://stackapps.com/* |
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
Request URL:http://japanese.stackexchange.com/questions/1472/pronunciation-and-meaning-of-%EE%93%BB | |
Request Method:GET | |
Status Code:301 Moved Permanently | |
Request Headers | |
GET /questions/1472/pronunciation-and-meaning-of-%EE%93%BB HTTP/1.1 | |
Host: japanese.stackexchange.com | |
Connection: keep-alive | |
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.102 Safari/535.2 | |
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 |
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
import re | |
import glob | |
import commands | |
duration_re = re.compile(r'(?P<hour>\d+):(?P<minute>\d+):(?P<second>\d+\.\d+),') | |
hour = minute = second = 0.0 | |
for f in glob.glob("./*"): | |
s = commands.getstatusoutput('ffmpeg -i %s 2>&1 | egrep "Duration" | cut -d " " -f 4' % f)[1] | |
m = duration_re.match(s) |
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.ext.admin import datastore | |
from flask.ext.admin import util | |
from flask.ext.wtf import Form | |
from pymongo.objectid import ObjectId | |
from pymongo.errors import OperationFailure | |
class Any(object): |