This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
String.prototype.format = function() { | |
var formatted = this; | |
for (var i = 0; i < arguments.length; i++) { | |
var regexp = new RegExp('\\{'+i+'\\}', 'gi'); | |
formatted = formatted.replace(regexp, arguments[i]); | |
} | |
return formatted; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# This hook prevents you from committing any file containing debug code. | |
# e.g. dsm(), dpm(), alert() and console.log(). There is also a PHP LINT check | |
# to ensure your syntax is okay. | |
# | |
# To force a commit that breaks the below rules (e.g. when debug code is 100% | |
# required you can add in another parameter to `git commit` namely `--no-verify`. | |
# | |
# Helpful git aliases for these are: |