Skip to content

Instantly share code, notes, and snippets.

In the desert

Stephen Howells stephenhowells

In the desert
View GitHub Profile
View gist:4083924
git config --global color.ui true
stephenhowells / gist:4021772
Created Nov 6, 2012
Apache conf snippet to hide .git directories and .gitignore files.
View gist:4021772
# do not allow .git version control files to be issued
<Directorymatch "^/.*/\.git+/">
Order deny,allow
Deny from all
<Files ~ "^\.git">
Order allow,deny
Deny from all
View remap.xml
<?xml version="1.0"?>
<name>Swap OPTION_L and COMMAND_L</name>
<autogen>--KeyToKey-- KeyCode::OPTION_L, KeyCode::COMMAND_L</autogen>
<autogen>--KeyToKey-- KeyCode::COMMAND_L, KeyCode::OPTION_L</autogen>
stephenhowells / grid.scss
Created Sep 27, 2012
nifty grid work in sass
View grid.scss
/*style several classes by prefix*/
[class*='col-'] {
float: left;
padding-right: $pad;
.grid &:last-of-type {
padding-right: 0;
.col-2-3 {
stephenhowells / Preferences.json
Created Sep 12, 2012
Current Sublime Text 2 Settings
View Preferences.json
"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,
View Evolution of a Python
#Newbie programmer
def factorial(x):
if x == 0:
return 1
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
stephenhowells / Python.sublime-settings
Created Sep 7, 2012
Python Specific Sublime Text Settings
View Python.sublime-settings
"tab_size": 4,
"translate_tabs_to_spaces": true,
"wrap_width": 79,
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Eighties.tmTheme"
View Fetch.sublime-settings
"jquery": "",
"normalize": "",
"reset": "",
"sass-css3-mixins": ""
stephenhowells / My Mixins
Created Aug 27, 2012 — forked from chriscoyier/My Mixins
View My Mixins
@mixin box-shadow ($string) {
-webkit-box-shadow: $string;
-moz-box-shadow: $string;
box-shadow: $string;
stephenhowells / gist:3432381
Created Aug 23, 2012 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts
View gist:3432381

Sublime Text 2 – Useful Shortcuts (Mac OS X)


⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt