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 / File.sublime-settings.json
Created August 16, 2012 22:04
Sublime Text 2 - My Settings
{
//Sets the colors used for text highlighting. Accepts a path rooted at the data directory (e. g.: Packages/Color Scheme - Default/Monokai Bright.tmTheme).
"color_scheme": "Packages/Made of Code.tmTheme",
//Font face to be used for editable text.
"font_face": "menlo",
//Size of the font for editable text.
"font_size": 12,
@stephenhowells
stephenhowells / file.sublime-keymap
Created August 20, 2012 04:56
Sublime Text Key Bindings - User
[
{ "keys": ["n", "n"], "command": "advanced_new_file",
"context": [{ "key": "setting.command_mode", "operand": true }]}
]
@stephenhowells
stephenhowells / hide-text.scss
Created August 23, 2012 04:22 — forked from soffes/hide-text.scss
Zeldman hide text under logo
// From http://www.zeldman.com/2012/03/01/replacing-the-9999px-hack-new-image-replacement/
@mixin hide-text {
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
}
@stephenhowells
stephenhowells / gist:3432381
Created August 23, 2012 04:28 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@stephenhowells
stephenhowells / My Mixins
Created August 27, 2012 05:18 — forked from chriscoyier/My Mixins
_functions.scss
//
// MIXINS
//
// SHADOWS
@mixin box-shadow ($string) {
-webkit-box-shadow: $string;
-moz-box-shadow: $string;
box-shadow: $string;
}
@stephenhowells
stephenhowells / Fetch.sublime-settings
Created September 6, 2012 03:49
Sublime Text Fetch Config
{
"files":
{
"jquery": "http://code.jquery.com/jquery.min.js",
"normalize": "https://raw.github.com/necolas/normalize.css/master/normalize.css",
"reset": "http://meyerweb.com/eric/tools/css/reset/reset.css",
"sass-css3-mixins": "https://raw.github.com/matthieua/Sass-Css3-Mixins/master/css3-mixins.scss"
},
"packages":
{
@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 {