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
javascript:(function(){setInterval(function(){var%20i,a,s;a=document.getElementsByTagName('link');for(i=0;%20i<a.length;%20i++){s=a[i];if(s.rel.toLowerCase().indexOf('stylesheet')>=0&&s.href){var%20h=s.href.replace(/(&|\?)forceReload\=\d+/,'');s.href=h+(h.indexOf('?')>=0?'&':'?')+'forceReload='+(new%20Date().valueOf())}}},3000)})() |
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
UNLICENSE | |
---- | |
http://unlicense.org/ | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any |
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
Installing simplehttp/simplequeue on Ubuntu (10 LTS?) in 6 steps with a 'clean' build. | |
1. need a cc compler | |
http://ubuntuforums.org/showthread.php?t=123542 | |
sudo apt-get install linux-kernel-headers | |
sudo apt-get install build-essential | |
2. Need json-c, libjson |
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 pylibmc | |
import Queue | |
import logging | |
import functools | |
""" | |
This is a transparent pool library that wraps a pylibmc client | |
from MemcachePool import mc | |
mc.get(key) |
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
## http://stackoverflow.com/questions/675370/tab-completion-in-python-interpreter-in-os-x-terminal/987402#987402 | |
import rlcompleter | |
import readline | |
readline.parse_and_bind ("bind ^I rl_complete") | |
#Whereas this one does not: | |
#import readline, rlcompleter | |
#readline.parse_and_bind("tab: complete") |
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
-module(myring). | |
-export([start/1, start_proc/2]). | |
start(Num) -> | |
start_proc(Num, self()). | |
start_proc(0, Pid) -> | |
Pid ! ok; | |
start_proc(Num, Pid) -> | |
NPid = spawn(?MODULE, start_proc, [Num -1, Pid]), |
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
// pycon talk selection irc bot. | |
var irc = require('../../node-irc/lib/irc.js'); | |
var sys = require('sys'); | |
var imb0t = function () { | |
return { | |
pattern_list: [], | |
client: undefined, | |
position: -1, // starts at -1 so we can increment it on the first ,next to make it 0, which properly indexes |
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
;;;;;;;;; | |
;; erc ;; | |
;;;;;;;;; | |
; http://www.emacswiki.org/emacs/ErcHighlightNicknames | |
(and | |
(require 'erc-highlight-nicknames) | |
(add-to-list 'erc-modules 'highlight-nicknames) | |
(erc-update-modules)) | |
;;; map ctrl-a to beginning of line |
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
## delay sourcing venv to workon call | |
## replace "source /Library/Frameworks/Python.framework/Versions/2.6/bin/virtualenvwrapper.sh" | |
## with below block | |
function load_env { | |
if [ type -p workon &> /dev/null ]; then | |
# nothing, source is loaded | |
workon "$@" | |
else | |
unalias workon | |
source /Library/Frameworks/Python.framework/Versions/2.6/bin/virtualenvwrapper.sh |
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
var partial = exports.partial = function partial(fn) { | |
var args = arguments, | |
func = fn; | |
[].shift.apply(args); | |
return function() { | |
var _args = [].slice.call(args, 0); | |
[].push.apply(_args, arguments); | |
return func.apply(func, _args); | |
}; | |
}; |
OlderNewer