Skip to content

Instantly share code, notes, and snippets.

View jonchretien's full-sized avatar
📷

Jon C. jonchretien

📷
View GitHub Profile
@jonchretien
jonchretien / Gruntfile.js
Last active December 20, 2015 11:49
Gruntfile used for personal project.
module.exports = function(grunt) {
// project configuration.
grunt.initConfig({
dirs: {
dest: '_publish'
},
file: 'index.php',
pkg: grunt.file.readJSON('package.json'),
clean: {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jonchretien
jonchretien / addressSplitter.html
Last active December 18, 2015 00:18
Quick script used for splitting mailing addresses into multiple columns for Excel.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.column {
display: inline-block;
}
</style>
http://uptodate.frontendrescue.org/
[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]
@jonchretien
jonchretien / Gruntfile.js
Last active December 15, 2015 23:19
Default Gruntfile (v0.4.x).
module.exports = function(grunt) {
// project configuration.
grunt.initConfig({
dirs: {
dest: '_dist'
},
file: 'index.html',
pkg: grunt.file.readJSON('package.json'),
clean: {
@jonchretien
jonchretien / notes.md
Last active December 15, 2015 18:09
JavaScript Presentations
@jonchretien
jonchretien / subClass.js
Created April 2, 2013 13:58
Spotify Tech Talk
function inherit(Subclass, Superclass) {
function F() {}
F.prototype = Superclass.prototype;
Subclass.prototype = new F();
return Subclass;
}
function Person() {
// do complex stuff here
}
@jonchretien
jonchretien / documentScroller.js
Last active December 12, 2015 08:18
Uses the requestAnimationFrame API. TODO: Add easing to the animation.
/**
* @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 ) {