Skip to content

Instantly share code, notes, and snippets.

View kriswill's full-sized avatar

Kris Williams kriswill

View GitHub Profile
@kriswill
kriswill / Smarty.tmLanguage
Created May 11, 2012 20:42
Smarty textmate syntax file, modified to work with SublimeText 2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>tpl</string>
<string>html</string>
</array>
<key>foldingStartMarker</key>
@kriswill
kriswill / chosen-ie7-prototype-js.diff
Created May 10, 2012 18:11
Chosen IE7 Prototype.js git-diff
diff --git a/chosen/chosen.proto.js b/chosen/chosen.proto.js
index e5049b0..0200299 100644
--- a/chosen/chosen.proto.js
+++ b/chosen/chosen.proto.js
@@ -408,14 +408,15 @@ Copyright (c) 2011 by Harvest
Chosen.prototype.container_mousedown = function(evt) {
var target_closelink;
if (!this.is_disabled) {
- target_closelink = evt != null ? evt.target.hasClassName("search-choice-close") : false;
+ var target = evt != null && evt.target ? $(evt.target) : null
@kriswill
kriswill / pb.sublime-project
Created September 12, 2011 19:38
pb sublime-text 2 general project file
{
"folders":
[
{
"path": "./common",
"folder_exclude_patterns": ["3rdparty"]
},
{
"path": "./includes",
"folder_exclude_patterns": ["3rdparty"]
Process: MongoHub [18473]
Path: /Applications/MongoHub.app/Contents/MacOS/MongoHub
Identifier: com.thepeppersstudio.MongoHub
Version: 2.0.9 (2.0.9)
Code Type: X86-64 (Native)
Parent Process: launchd [129]
Date/Time: 2010-05-29 22:58:41.429 -0700
OS Version: Mac OS X 10.6.3 (10D2094)
Report Version: 6