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
(function() { | |
var jonJS = { | |
version: "1.1" | |
}; | |
jonJS.Browser = function() { | |
var ua = navigator.userAgent.toLowerCase(); | |
// ------------------------- |
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
#!/bin/sh | |
open /Applications/Google\ Chrome.app --args --enable-extension-timeline-api |
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
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 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 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
----------------------------------------------------------------------------- | |
General | |
----------------------------------------------------------------------------- | |
Command palette: | |
cmd + shift + p | |
Go to method: | |
cmd + r |
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 | |
# | |
# Sublime Text 2|3 Markdown Build System | |
# | |
# This Sublime Text 2|3 build system simply takes Markdown source as an | |
# arg(1) and parses the HTML for previewing in a browser window. | |
# | |
# **Requirements** | |
# | |
# - Sublime Text 3 <http://www.sublimetext.com> |
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 python | |
import re | |
import urllib2 | |
def fetch_data(): | |
return str(urllib2.urlopen('http://time.is').read()) | |
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 python | |
import os.path as filepath | |
import sys | |
from optparse import OptionParser | |
def main(): | |
parser = OptionParser( | |
prog='rp', usage="%prog [path]\n\nReturn the canonical path of the specified filename\n\n [path]\tpath of file to check\n\n when *no args* are passed, the current working directory\n will be set as [path].") |
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
# update all non-sublime package control packages (osx) | |
function update_sublimetext_packages() | |
{ | |
echo "" | |
echo "==> Updating Sublime Text Packages" | |
echo "" | |
local cwd=$(pwd) | |
local subl_pkgs_dir=~/Library/Application\ Support/Sublime\ Text\ 3/Packages | |
local repo= |
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
Event::listen('illuminate.query', function($sql) | |
{ | |
Log::info('Request URL: '.Request::url() .' Query: '.$sql); | |
}); |
OlderNewer