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
ruleset a60x226 { | |
meta { | |
name "array inside an array" | |
description << | |
for devex question | |
>> | |
author "Mike Grace" | |
logging on | |
} |
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
ruleset a60x262 { | |
meta { | |
name "talkative rules" | |
description << | |
talkative rules | |
>> | |
author "Mike Grace" | |
logging on | |
} |
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
ruleset a60x267 { | |
meta { | |
name "Fire rule on search" | |
description << | |
Fire rule on search | |
>> | |
author "Mike Grace" | |
logging on | |
} |
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/bash | |
# Copyright 2010 Michael Grace | |
# http://geek.michaelgrace.org | |
# Created 06/13/2010 | |
clear | |
echo "Script created by Mike Grace http://www.google.com/profiles/themikegrace" | |
echo "========================================================================" | |
echo "" | |
# check if script is run as root or with sudo |
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
# Use growlnotify to alert user of commit status | |
krl() { | |
if [[ $@ == "commit" ]]; then | |
command krl commit | tee status.txt | growlnotify -t "KRL" --image /kynetx-x.png; | |
cat status.txt; | |
else | |
command krl $@ | |
fi; | |
} |
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
<?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>beforeRunningCommand</key> | |
<string>saveActiveFile</string> | |
<key>bundleUUID</key> | |
<string>AAB4FD74-73F9-11D9-B89A-000D93589AF6</string> | |
<key>command</key> | |
<string>growlnotify -t "TextMate" -m "committing code" -a "TextMate" |
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
ruleset a60x274 { | |
meta { | |
name "click event" | |
description << | |
Testing click events on id and class elements and figuring out how click event handling works in KRL | |
>> | |
author "Mike Grace" | |
logging on | |
} |
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
test = [1,2,3,4,5]; | |
$K(test).each(function() { | |
console.log(this + 1); | |
}) |
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
ruleset a60x275 { | |
meta { | |
name "Set entity var on click event" | |
description << | |
- Testing to see how to set entity variables on KRL click events | |
- App can be run on different pages at different times and the click count will be saved | |
>> | |
author "Mike Grace" | |
logging on | |
} |
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 defaultParams(name, class, id) { | |
if (class == null) class = "CS 101 [default]"; | |
if (id == null) id = "Not yet set"; | |
return "Name: " + name + ", Class: " + class + ", ID: " + id; | |
} |
OlderNewer