The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
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)})() |
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 |
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 |
#! /bin/sh | |
#Starting a simple queue on port 4414 and putting in background | |
export PATH=$PATH:/usr/local/bin | |
simplequeue -p4414 & |
# sample for 127.0.0.1:4414 | |
simplequeue -p 4414 -a 127.0.0.1 | |
The actual code for command line args to simplequeue: | |
address = "0.0.0.0"; | |
port = 8080; | |
opterr = 0; |
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) |
# display current git branch | |
export WORKON_HOME=$HOME/.virtualenvs | |
source /usr/local/bin/virtualenvwrapper.sh | |
function has_virtualenv { | |
if [ -e .venv ]; then | |
curr_env=`cat .venv` |
## 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") |
/* | |
filename: basic.css | |
http://unlicense.org/ | |
author: gregory tomlinson | |
*/ | |
*{ padding:0; margin:0; } | |
h1,h2,h3,h4,h5,h6,input,textarea,select,option, body { | |
font-family:Arial, sans-serif; |