Skip to content

Instantly share code, notes, and snippets.

View alexkolson's full-sized avatar

Alex Olson alexkolson

  • Lufthansa Technik
  • Hamburg
View GitHub Profile
@alexkolson
alexkolson / time.php
Created November 5, 2010 06:04
coefficient of awesomness
<?php
class Printer {
private $arr;
private $callback;
public function printer($arr,$wrap) {
$this->arr = $arr;
$this->callback = $wrap;
}
public function json() {
ruleset a369x111 {
meta {
name "Sidetab->Events"
description <<
Sidetab jQuery
>>
author "AKO"
logging on
use javascript resource jquery_ui_js
ruleset a369x115 {
meta {
name "StringBin Module"
description <<
StringBin Module
>>
author "AKO"
logging off
provide read, write, destroy
ruleset a369x117 {
meta {
name "Clownhat JS"
description <<
Clownhat JS
>>
author "AKO"
logging on
}
ruleset a369x116 {
meta {
name "SringBin Module Test Harness"
description <<
SringBin Module Test Harness
>>
author "AKO"
logging on
use module a369x115 alias StringBin with pin = "X9ooUUsrR180MkpxZ2N1M"
ruleset a369x122 {
meta {
name "kynetx-desktop-endpoint-driver"
description <<
kynetx-desktop-endpoint-driver
>>
author "AKO"
// Uncomment this line to require Marketplace purchase to use this app.
// authz require user
logging off
ruleset a876x16 {
meta {
name "Flickr Dataset Tutorial"
description <<
Dataset tutorial using the Flickr Public Feed
>>
author "Brad Hintze"
logging on
}
ruleset a876x16 {
meta {
name "Flickr Dataset Tutorial"
description <<
Dataset tutorial using the Flickr Public Feed
>>
author "Brad Hintze"
logging off
}
@alexkolson
alexkolson / krl_facebook_send_button_placement.krl.js
Created April 27, 2011 03:26
Placing the send button on any page using KRL
rule append_send_button {
select when pageview ".*"
{
emit <|
$KOBJ("body").append('<fb:send href="exampley.com" font="Arial"></fb:send>'); // href is the link to send. Can be any valid url. Maybe even location.host? ;)
var head = $KOBJ("head").get(0); // or just document.getElementsByTagName("head")[0], but I <3 jQuery
var script = document.createElement("script");
script.src = "http://connect.facebook.net/en_US/all.js#xfbml=1";
head.appendChild(script);
|>;
{
"Person" :
{
"what" : "Contact information for a person",
"defaultapps" : [
"a169x625.prod",
"a169x664.prod",
"a169x676.prod",
"a16x161.prod",
"a41x178.prod",