This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
// Code Formatting | |
// The argument allows the command to also work on the entire file in addition to a selection. | |
"keys": ["command+option+["], | |
"command": "reindent", | |
"args": { | |
"single_line": false | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[core] | |
repositoryformatversion = 0 | |
filemode = true | |
bare = false | |
logallrefupdates = true | |
safecrlf = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Grid System | |
// ------------------------- | |
@function calculateRowMargin($gridGutterWidth) { | |
@return ($gridGutterWidth * -1); | |
} | |
@function calculateColumnWidth($i, $gridColumnWidth, $gridGutterWidth) { | |
@return ($i * $gridColumnWidth) + (($i - 1) * $gridGutterWidth); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Calculate the height of the document. | |
* http://stackoverflow.com/questions/1145850/get-height-of-entire-document-with-javascript | |
*/ | |
function calculateDocumentHeight() { | |
var body = document.body, | |
html = document.documentElement, | |
height; | |
height = Math.max( body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight ); | |
return height; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author Jon Chretien | |
* @overview User clicks on a navigation link and document scrolls to element with matching DOM id. | |
* @copyright 2013 | |
*/ | |
/*jshint asi: true, browser: true, curly: true, eqeqeq: true, forin: false, immed: false, newcap: true, noempty: true, strict: true, undef: true, sub: true */ | |
(function( window, undefined ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function inherit(Subclass, Superclass) { | |
function F() {} | |
F.prototype = Superclass.prototype; | |
Subclass.prototype = new F(); | |
return Subclass; | |
} | |
function Person() { | |
// do complex stuff here | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
// project configuration. | |
grunt.initConfig({ | |
dirs: { | |
dest: '_dist' | |
}, | |
file: 'index.html', | |
pkg: grunt.file.readJSON('package.json'), | |
clean: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = [email protected] | |
name = Jon Chretien | |
[alias] | |
k = log --oneline --graph --decorate | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
[core] | |
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
excludesfile = /Users/jchretien/.gitignore_global | |
[color] |