Skip to content

Instantly share code, notes, and snippets.

@indiefolk
indiefolk / node-generate-modules.js
Created February 5, 2016 14:24
Node script to restructure app module files
/**
* Node Generate Modules
*
* Node script to restructure app module files
*
* Move nested modules from individual project directories to a
* central modules directory shared by the app.
*
* Auto generate related module files - scss, html template, html demo page
*/
@indiefolk
indiefolk / .git-completion.bash
Created October 17, 2013 09:08
.git-completion.bash
#!bash
#
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
@indiefolk
indiefolk / .profile
Created October 17, 2013 09:06
.profile
source ~/.git-completion.bash
@indiefolk
indiefolk / .git-completion.sh
Created October 17, 2013 09:01
.git-completion.sh
#!bash
#
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
@indiefolk
indiefolk / .git-prompt.sh
Created October 17, 2013 09:00
.git-prompt.sh
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@indiefolk
indiefolk / .bash_profile
Created October 16, 2013 12:33
.bash_profile
export PATH="$(brew --prefix josegonzalez/php/php54)/bin:$PATH"
source ~/.git-prompt.sh
# enable the git bash completion commands
source ~/.git-completion.sh
# enable git unstaged indicators - set to a non-empty value
GIT_PS1_SHOWDIRTYSTATE="."
@indiefolk
indiefolk / console.log() shortcut
Created August 8, 2013 09:15
Sublime Snippet - Type log and press tab to make console.log(); Save to: /Library/Application Support/Sublime Text 3/Packages/User/console.log.sublime-snippet
<snippet>
<content><![CDATA[
console.log($1);
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>log</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
</snippet>
@indiefolk
indiefolk / JS Revealing module pattern shortcut
Last active December 20, 2015 19:28
Sublime Snippet - JS Revealing Module pattern
<snippet>
<content><![CDATA[
/*
${1: Module Name}
*/
${2:Module} = (function () {