most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
var stateToAP = function(state) { | |
var STATES = [ | |
["Alabama", "AL", "Ala.", 1], | |
['Alaska', "AK", "Alaska", 2], | |
["Arizona", "AZ", "Ariz.", 4], | |
["Arkansas", 'AR', "Ark.", 5], | |
["California", "CA", "Calif.", 6], | |
["Colorado", "CO", "Colo.", 8], | |
["Connecticut", "CT", "Conn.", 9], | |
["Delaware", "DE", "Del.", "10"], |
Area Transition Documentation |
# MacPorts | |
export PATH=/opt/local/bin:/opt/local/sbin:$PATH | |
export MANPATH=/opt/local/share/man:$MANPATH | |
# Terminal colours (after installing GNU coreutils) | |
NM="\[\033[0;38m\]" #means no background and white lines | |
HI="\[\033[0;37m\]" #change this for letter colors | |
HII="\[\033[0;31m\]" #change this for letter colors | |
SI="\[\033[0;33m\]" #this is for the current directory | |
IN="\[\033[0m\]" |
Dial Chart examples. Suggestions and enhancements are welcome. |
/**********************************************/ | |
/* | |
/* Tomorrow Skin by Ben Truyman - 2011 | |
/* | |
/* Based on Chris Kempson's Tomorrow Theme: | |
/* https://github.com/ChrisKempson/Tomorrow-Theme | |
/* | |
/* Inspired by Darcy Clarke's blog post: | |
/* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
/* |
#!/usr/bin/python2.7 | |
import sys, os, string | |
if os.geteuid() != 0: | |
sys.stderr.write("Sorry, root permission required.\n"); | |
sys.exit(1) | |
PAGESIZE=os.sysconf("SC_PAGE_SIZE")/1024 #KiB | |
our_pid=os.getpid() |
redirect: 34f08d5e11952a80609169b7917d4172 |
/******************** | |
* TOOLTIP CSS | |
*/ | |
.nvtooltip { | |
position: absolute; | |
background-color: rgba(255,255,255,1); | |
padding: 10px; | |
border: 1px solid #ddd; |
#!/usr/bin/env python | |
import logging as log | |
from fileinput import input | |
from collections import namedtuple, defaultdict | |
from pprint import pprint | |
if __debug__: | |
log_level = log.DEBUG | |
else: |