Skip to content

Instantly share code, notes, and snippets.

View aaronfrost's full-sized avatar
:octocat:
Software Architect Contractor

Aaron Frost aaronfrost

:octocat:
Software Architect Contractor
View GitHub Profile
@aaronfrost
aaronfrost / brokenKRL
Created April 5, 2011 07:14
This should work, but doesn't. Not sure why. Can someone tell me?
dispatch {
// Some example dispatch domains
// domain "example.com"
domain "google.com"
}
global {
}
rule temp_rule is active{
@aaronfrost
aaronfrost / googleresultsscan.js
Created April 27, 2011 18:13
constant scan for new results on google
function runSetup(){
//Find the items that you are looking for, that don't have your setup class.
$K("#rso > li:not(.tmsetup)").each(function(){
//CODE TO DO SOMETHING WITH YOUR ITEM
//MAKE SURE TO RUN THIS NEXT LINE... so that they don't appear in your next search.
$K(this).addClass('tmsetup');
});
}
setInterval(function(){
runSetup();
@aaronfrost
aaronfrost / keycomboevent.js
Created May 8, 2011 01:05
js key-combo-event example w/ KRL
ctrlpressed = false;
altpressed = false;
tpressed = false;
tempapp = KOBJ.get_application("MY_APP");
function KeyCheck_Global(e, isPressed){
var gotkey = null;
switch(e.keyCode){
case 17: //CTRL
ctrlpressed=isPressed;
@aaronfrost
aaronfrost / gist:1984130
Created March 6, 2012 06:22
let sample one
var foo = 0;
if(true){
var bar = 1;
}
@aaronfrost
aaronfrost / jsnexttwo.js
Created March 6, 2012 08:26
jsnext two
var foo = undefined;
var bar = undefined;
foo = 0;
if(true){
bar = 1;
}
console.log( foo + bar );
var a = 1;
function run(){
if(true){
var a = 2;
}
}
run();
console.log(a);
var a = 1;
function run(){
var a = undefined;
if(true){
a = 2;
}
}
run();
console.log(a);
function run(){
console.log(“running”);
}
run();
function run(){
console.log(“running”);
}
run();
function run(){
console.log(“running”);
}
run();
run();