Skip to content

Instantly share code, notes, and snippets.

@otterthecat
otterthecat / ignore
Last active February 7, 2019 19:30
A template for setting .gitignore
# Installed Node Modules #
##########################
node_modules/
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
@otterthecat
otterthecat / package.json
Last active December 21, 2015 22:09
Template for package.json flles
{
"name": "Project",
"title": "Project",
"description": "Snazzy Description",
"version": "0.0.1",
"private": true,
"homepage": "[email protected]:otterthecat/myRepo.git",
"author": {
"name": "Otter the Cat",
"email": "[email protected]"
@otterthecat
otterthecat / Gruntfile.js
Created February 8, 2014 17:38
Template for Gruntfiles
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['lib/*.js']
@otterthecat
otterthecat / pre-commit
Created February 10, 2014 02:58
git pre-commit hook to run grunt
#!/bin/sh
grunt
RETVAL=$?
[ $RETVAL -eq 0 ] && echo Success
[ $RETVAL -ne 0 ] && echo Failure
if [ $RETVAL -ne 0 ]
then
@otterthecat
otterthecat / reporting post-commit hook
Created February 10, 2014 03:07
post-commit hook
#!/bin/sh
grunt report
RETVAL=$?
[ $RETVAL -eq 0 ] && echo Success
[ $RETVAL -ne 0 ] && echo Failure
if [ $RETVAL -ne 0 ]
then
@otterthecat
otterthecat / mocha.opts
Created April 20, 2014 21:09
Template for mocha.opts
--require chai
--reporter nyan
--ui bdd
--recursive
@otterthecat
otterthecat / sublime-user-preferences
Last active March 9, 2016 01:29
sublime-user-settings
{
"color_inactive_tabs": true,
"color_scheme": "Packages/Theme - Afterglow/Afterglow-twilight.tmTheme",
"draw_white_space": "all",
"font_face": "DejaVu Sans Mono",
"font_size": 14,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
function gh(){
cd ~/projects/github/$1
}
function site(){
cd ~/projects/remotes/$1
}
function no(){
if test "$#" == "1"
@otterthecat
otterthecat / .editorconfig
Last active October 10, 2015 22:21
Editor Config file
# editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_size = 2
indent_style = space
trim_trailing_whitespace = true
@otterthecat
otterthecat / .jscsrc
Last active August 29, 2015 14:03
Config for formatting javascript via JSCS
{
"requireCurlyBraces": [
"if",
"else",
"for",
"while",
"do",
"try",
"catch",
"finally",