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
| Route::filter('scrf', function() | |
| { | |
| if ( !Request::secure() ) return Redirect::secure( Request::path('/toSecureURL') ); | |
| }); |
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
| // String utils | |
| // | |
| // resources: | |
| // -- mout, https://github.com/mout/mout/tree/master/src/string | |
| /** | |
| * "Safer" String.toLowerCase() | |
| */ | |
| function lowerCase(str) { | |
| return str.toLowerCase(); |
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
| import sublime | |
| import sublime_plugin | |
| import time | |
| class EventLog(sublime_plugin.EventListener): | |
| def __init__(self): | |
| print "--- Event Log Initialized ---" | |
| sublime.status_message('--- Event Log Initialized ---') |
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 | |
| # script for daily maintenance of mac ports | |
| # upgrades to packages | |
| # discards orphaned packages, etc. | |
| # check for user id (must be run as root) | |
| if [ ${EUID} != 0 ]; then | |
| echo "script must be run as root! Recalling with sudo" | |
| sudo $0 |
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 | |
| open /Applications/Google\ Chrome.app --args --enable-extension-timeline-api |
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() { | |
| var jonJS = { | |
| version: "1.1" | |
| }; | |
| jonJS.Browser = function() { | |
| var ua = navigator.userAgent.toLowerCase(); | |
| // ------------------------- |
NewerOlder