Skip to content

Instantly share code, notes, and snippets.

View jasonmerino's full-sized avatar
👋
Hey there!

Jason Merino jasonmerino

👋
Hey there!
View GitHub Profile
find . -name "*.js" | grep -v node_modules | while read i; do js2coffee "$i" > "${i%.*}.coffee"; done
var productView = function() {
this.data = this.data || {};
return {
set: function(options) {
$.extend(this.data, options);
},
get: function(key) {
@jasonmerino
jasonmerino / prepare-commit-msg
Last active March 18, 2019 12:20 — forked from bartoszmajsak/prepare-commit-msg.sh
Prepend branch name to every git commit message unless on master.
#!/bin/sh
#
# Prepend the branch name to the commit message
#
# Add this file as [repo]/.git/hooks/prepare-commit-msg
#
# A couple notes:
# 1. The file must be executable (chmod +x prepare-commit-msg)
# 2. This works on a per-repo basis (unless you follow this guide https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook)