Skip to content

Instantly share code, notes, and snippets.

View stephenhowells's full-sized avatar
🏜️
In the desert

Stephen Howells stephenhowells

🏜️
In the desert
View GitHub Profile
@stephenhowells
stephenhowells / Python.sublime-settings
Created September 7, 2012 15:11
Python Specific Sublime Text Settings
{
"rulers":
[
72,
79
],
"tab_size": 4,
"translate_tabs_to_spaces": true,
"wrap_width": 79,
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Eighties.tmTheme"
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
@stephenhowells
stephenhowells / Preferences.json
Created September 12, 2012 00:04
Current Sublime Text 2 Settings
{
"auto_complete": true,
"auto_indent": true,
"auto_match_enabled": true,
"bold_folder_labels": true,
"caret_style": "smooth",
"color_scheme": "Packages/User/Made of Code.tmTheme",
"default_encoding": "UTF-8",
"default_line_ending": "unix",
"detect_indentation": true,
@stephenhowells
stephenhowells / grid.scss
Created September 27, 2012 21:22
nifty grid work in sass
/*style several classes by prefix*/
[class*='col-'] {
float: left;
padding-right: $pad;
.grid &:last-of-type {
padding-right: 0;
}
}
.col-2-3 {
@stephenhowells
stephenhowells / remap.xml
Created October 4, 2012 15:03
Keyboard Remap XML
<?xml version="1.0"?>
<root>
<item>
<name>Swap OPTION_L and COMMAND_L</name>
<identifier>private.swap_OPTION_L_and_COMMAND_L</identifier>
<autogen>--KeyToKey-- KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen>
<autogen>--KeyToKey-- KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen>
</item>
<item>
@stephenhowells
stephenhowells / gist:4083924
Created November 16, 2012 04:00
show colors in Git
git config --global color.ui true
@stephenhowells
stephenhowells / gist:4091072
Created November 16, 2012 21:27
reload shell settings
#bash
. ~/.bash_profile
#zsh
. ~/.zshrc
@stephenhowells
stephenhowells / gist:4539225
Created January 15, 2013 15:00
Sublime config 1-15-13
{
"auto_complete": true,
"auto_indent": true,
"auto_match_enabled": true,
"bold_folder_labels": true,
"caret_style": "smooth",
"close_windows_when_empty": false,
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"default_encoding": "UTF-8",
"default_line_ending": "unix",
@stephenhowells
stephenhowells / private.xml
Last active December 11, 2015 07:49
KeyRemap4MacBook
<?xml version="1.0"?>
<root>
<item>
<name>Swap OPTION_L and COMMAND_L</name>
<identifier>private.swap_OPTION_L_and_COMMAND_L</identifier>
<autogen>--KeyToKey-- KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen>
<autogen>--KeyToKey-- KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen>
</item>
<item>
# Set prefix command to Ctrl-a
set -g prefix C-a
unbind C-b
# Reduce tmux delay for more responsiveness
set -sg escape-time 1
# Window and pane index count starts in 1 rather tan 0
set -g base-index 1
setw -g pane-base-index 1