This file contains hidden or 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
while [[ ! $RELATIVE_PATH_CHECKED =~ ^[Yy]$ ]] | |
do | |
read -p "Is the relative path to the dev folder '${RELATIVE_PATH}' correct? [y/n] " -n 1 -r RELATIVE_PATH_CHECKED | |
echo "" | |
if [[ $RELATIVE_PATH_CHECKED =~ ^[Nn]$ ]] | |
then | |
read -p "Type in the correct path: " -r RELATIVE_PATH | |
fi | |
done |
This file contains hidden or 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
// load the $http module | |
var $http = angular.injector(["ng"]).get("$http"); | |
$http. |
This file contains hidden or 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
DATE=$(date +"%Y-%m-%d--%H-%M-%S") |
This file contains hidden or 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
function interceptFunction (object, fnName, options) { | |
var noop = function () {}; | |
var fnToWrap = object[fnName]; | |
var before = options.before || noop; | |
var after = options.after || noop; | |
object[fnName] = function () { | |
before.apply(this, arguments); | |
var result = fnToWrap.apply(this, arguments); | |
after.apply(this, arguments); |
This file contains hidden or 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
#!/bin/sh | |
### | |
# cdalias | |
### | |
# Makes an alias for cd'ing to the current directory. |
NewerOlder