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/bash | |
sha=0 | |
previous_sha=0 | |
commitmsg="online changes (autogit)" | |
if [ $1 ]; then | |
repo=$1 | |
else | |
repo='.' |
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 isFunction(functionToCheck) { | |
var getType = {}; | |
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]'; | |
} |
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 getElementsByClassName(node,classname) { | |
if (node.getElementsByClassName) { | |
// use native implementation if available | |
return node.getElementsByClassName(classname); | |
} else { | |
return (function getElementsByClass(searchClass,node) { | |
if ( node == null ) | |
node = document; | |
var classElements = [], | |
els = node.getElementsByTagName("*"), |
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 currentHostname() { | |
isset($_SERVER['HTTPS']) ? $pageURL = 'https://' : $pageURL = 'http://'; | |
$pageURL .= $_SERVER['SERVER_PORT'] != '80' ? $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"] : $_SERVER['SERVER_NAME']; | |
return $pageURL; | |
} |
NewerOlder