Skip to content

Instantly share code, notes, and snippets.

View stratedge's full-sized avatar

Jarret Byrne stratedge

View GitHub Profile
@stratedge
stratedge / curry.js
Last active April 20, 2018 15:41
JS Curry Demo
/**
* Curry function that will prepend given arguments to the provided function
* before being run.
*
* (Technically this isn't true curry'ing, but it makes enough sense to call it that here for now)
*
* @param {[Function]} func
* @param {...[mixed]} args
* @return {[Function]}
*/
@stratedge
stratedge / git-squash.sh
Last active July 10, 2017 23:01
Squash commits on current branch that are different from the develop branch and rebase to the develop branch
#!/bin/sh
# Colors
C_RESET="\033[0m"
C_ERROR="\033[0;97m\033[41m"
C_GOLD="\033[0;33m"
C_CYAN="\033[0;36m"
C_GREEN="\033[0;32m"
display_error () {