Skip to content

Instantly share code, notes, and snippets.

@TelegramSam
TelegramSam / ifthenelse
Created April 6, 2011 16:13
else in krl
ruleset a8x152 {
meta {
name "if then else"
description <<
Demonstrates the power of actions to enable 'else' in krl!
>>
author "Sam Curren"
logging off
}
ruleset a8x153 {
meta {
name "recursive action without function"
description <<
Runs a recursive action without a function to create the recursive step.
Base case is handled by the nexta defaction conditional expression.
>>
author "Sam Curren"
logging off
}
@TelegramSam
TelegramSam / instagram oAuth example
Created April 20, 2011 16:44
demonstrates calling oAuth protected resources.
ruleset a8x162 {
meta {
name "Instagram oauth without modules"
description <<
Demonstrates calling oAuth protected APIs
>>
author "Sam Curren"
logging on
key instagram {
@TelegramSam
TelegramSam / gist:996138
Created May 27, 2011 20:46
krl webhooks module source
ruleset a8x157 {
meta {
name "Webhook Module"
description <<
Provides actions for working with the Kynetx Webhook Endpoint
>>
author "Sam Curren"
logging off
provides text, html, json, xml, js, redirect
@TelegramSam
TelegramSam / full results
Created July 20, 2011 16:51
ruby profile output
Thread ID: 2151955260
Total Time: 51.512298
%total %self total self wait child calls Name
--------------------------------------------------------------------------------
100.00% 0.00% 51.51 0.00 0.00 51.51 2 Global#[No method]
51.51 0.00 0.00 51.51 1/1 Kernel#load
--------------------------------------------------------------------------------
51.51 0.00 0.00 51.51 1/1 Global#[No method]
100.00% 0.00% 51.51 0.00 0.00 51.51 1 Kernel#load