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
| # Show files with conflicting changes | |
| git config --global alias.conflicts '!git ls-files -u | cut -f 2 | sort -u' |
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
| <div class="grad"></div> |
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 json($data) | |
| { | |
| $this->output->set_header('Content-type:application/json'); | |
| $this->output->set_output(json_encode($data)); | |
| } |
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 separateWords(stringVal) /* returns string */ { | |
| return stringVal.split(/(?=[A-Z])/).join(' '); | |
| } |
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
| // Arrow key nav for videos | |
| // - Left: -5s | |
| // - Right: +5s | |
| // - Up: +30s | |
| // - Down: -30s | |
| javascript:var timeAdj = {'37': -5, '39': 5, '38': 30, '40': -30 }; document.addEventListener("keyup", function(e) { if (e.which > 36 || e.which < 41) { e.preventDefault(); document.querySelectorAll("video").forEach(function(vid) { vid.currentTime += timeAdj[e.which]; vid.play();});}}); |
OlderNewer