<([a-z][a-z0-9]*)[^>]*?(/?)>
token | explanation |
---|---|
< | match < at beginning of tags |
( | start capture group $1 - tag name |
[a-z] | match a through z |
(function() { | |
var jonJS = { | |
version: "1.1" | |
}; | |
jonJS.Browser = function() { | |
var ua = navigator.userAgent.toLowerCase(); | |
// ------------------------- |
#!/bin/sh | |
open /Applications/Google\ Chrome.app --args --enable-extension-timeline-api |
#!/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 |
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 ---') |
// String utils | |
// | |
// resources: | |
// -- mout, https://github.com/mout/mout/tree/master/src/string | |
/** | |
* "Safer" String.toLowerCase() | |
*/ | |
function lowerCase(str) { | |
return str.toLowerCase(); |
Route::filter('scrf', function() | |
{ | |
if ( !Request::secure() ) return Redirect::secure( Request::path('/toSecureURL') ); | |
}); |
Event::listen('illuminate.query', function($sql) | |
{ | |
Log::info('Request URL: '.Request::url() .' Query: '.$sql); | |
}); |
#!/usr/bin/env python | |
import os | |
import sys | |
import glob | |
from mutagen.mp3 import MP3 | |
from mutagen.easyid3 import EasyID3 | |
# | |
# MP3 playlist generator |
----------------------------------------------------------------------------- | |
General | |
----------------------------------------------------------------------------- | |
Command palette: | |
cmd + shift + p | |
Go to method: | |
cmd + r |