Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@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
@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 / 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 {
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 / 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 a8x115 {
meta {
name "Twilio Module"
description <<
Utility methods for interacting with Twilio
>>
author "Sam Curren"
logging on
//keys for testing
ruleset a8x133 {
meta {
name "StackOverflow"
description <<
>>
author "Sam"
logging on
}
ruleset a8x117 {
meta {
name "CallFromEmail"
description <<
Place a call on inbound email
>>
author "Sam Curren"
logging on
key twilio {
@TelegramSam
TelegramSam / provides
Created February 3, 2011 03:59
features that show what is up next
provides onnow, next
@TelegramSam
TelegramSam / including module
Created February 2, 2011 23:10
including the module
meta {
...
use module a8x114 alias kpublicevents with url =
"http://www.google.com/calendar/feeds/sk8bh034vvqfbgercq68rtspi4@group.calendar.google.com/public/basic"
}