Skip to content

Instantly share code, notes, and snippets.

@bradhintze
bradhintze / PersonalBlocklist.krl
Created February 15, 2011 21:20
Extension code to create a personal blocklist for search results
ruleset a169x230 {
meta {
name "Personal Search Blocklist"
description <<
Personal Search Blocklist
>>
author "Ed Orcutt"
logging off
key errorstack "52f54bf3c4deb3cbb41ba8b1ac7d5832"
}
** TIMESTAMPS IN LOGGING LINES REMOVED FOR READABILITY**
// DEBUG Rules.pm a60x23 [global] Found 2 rules for RID a60x23
// DEBUG Events.pm a60x23 start_the_party Adding to schedule: a60x23 & start_the_party
// DEBUG Scheduler.pm a60x23 clean_up Schedule iterator returning start_the_party with current RID count 0 and current rule count 1
// DEBUG Rules.pm a60x23 clean_up Getting ruleset a60x23 for http://example.com/
// DEBUG Repository.pm a60x23 clean_up Using cached ruleset for a60x23 (dev) with key ruleset:dev:a60x23 & optimization version 7
// DEBUG Rules.pm a60x23 clean_up Found 2 rules for RID a60x23
// INFO Rules.pm a60x23 clean_up Processing rules for site a60x23
// DEBUG Rules.pm a60x23 clean_up Global vars:
// DEBUG Rules.pm a60x23 start_the_party Rule start_the_party is active
(function() {
var d = document;
var s = d.createElement('script');
s.text = "KOBJ_config={'a60x22:kynetx_app_version':'dev','rids':['a60x22']};";
d.body.appendChild(s);
var l = d.createElement('script');
l.src = 'http://init.kobj.net/js/shared/kobj-static.js';
d.body.appendChild(l);
})()
ruleset a60x6 {
meta {
name "Dual execution environment"
description <<
Simple app to show where different parts execute and end up
>>
author "Mike Grace"
logging on
}
@bradhintze
bradhintze / Dataset_Tutorial.CompleteApp.krl
Created December 22, 2010 18:50
The initialize rule for the Dataset tutorial using Flickr.
ruleset a876x16 {
meta {
name "Flickr Dataset Tutorial"
description <<
Dataset tutorial using the Flickr Public Feed
>>
author "Brad Hintze"
logging on
}
@bradhintze
bradhintze / Dataset_Tutorial.Initialize.krl
Created December 22, 2010 18:47
The initialize rule for the Dataset tutorial using Flickr.
rule initialize is active {
select using ".*" setting ()
pre {
InitializedDiv = <<
<div id="FlickrPublicFeed" style="overflow-y:scroll; overflow-x:hidden; height:450px; margin: 3px;">
</div>
>>;
}
notify("Flickr Public Feed", InitializedDiv)
meta {
name "YQL=>siteexplorer table"
description <<
YQL=>siteexplorer table
>>
author "AKO"
logging on
use javascript resource jquery_ui_js
use css resource jquery_ui_redmond_css
@bradhintze
bradhintze / Huflix.krl
Created December 14, 2010 16:11
Contest submission by David Godfrey for the Extending the Web contest. Adds Hulu search results to a Netflix search page.
meta {
name "Huflix"
description <<
When searching in Netflix, see up to 3 matched search results for Hulu. Hover over the Hulu logo to see the title of the video and click to go to the video on hulu. Hulu search results are normal free Hulu episodes and Hulu plus.
>>
author "David Godfrey"
// Uncomment this line to require Marketplace purchase to use this app.
// authz require user
logging off
ruleset a876x14 {
meta {
name "Sweetter Search"
author "Cid Dennis"
logging on
key twitter {
"consumer_key" : "REDACTED",
"consumer_secret" : "REDACTED"
}
}
@bradhintze
bradhintze / FlickrLikr.krl
Created December 1, 2010 01:19
Checks for Facebook Authorization on Flickr.com
meta {
name "fb_flickr_likr"
description <<
>>
author "Mark Horstmeier / Brad Hintze"
// Uncomment this line to require Marketplace purchase to use this app.
// authz require user
logging on