Skip to content

Instantly share code, notes, and snippets.

View rsbohn's full-sized avatar

Randall Bohn rsbohn

  • Rando Media
  • Orem Utah USA
View GitHub Profile
@xunker
xunker / borg.rb
Last active December 17, 2015 23:09
borg.rb - an office productivity enhancer for Mac OS only.
voices = %w[Agnes Alex Bruce Bubbles Fred Junior Kathy Princess Ralph Vicki Victoria]
phrases = [
"We are the Borg.",
"Lower your shields and surrender your ships.",
"We will add your biological and technological distinctiveness to our own.",
"Your culture will adapt to service us.",
"Resistance is futile."
]
@adamgoucher
adamgoucher / htmlvalidation.py
Created November 16, 2012 04:24
checking for valid html with python
import requests
import json
class ValidationException(Exception):
pass
class Element34(object):
def __init__(self, driver):
self.driver = driver
@snay2
snay2 / gist:1925904
Created February 27, 2012 18:06
Simple example for using arrays in an entity variable in KRL
ruleset a163x156 {
meta {
name "Arrays"
description <<
Some experiments using arrays in KRL
>>
author "Steve Nay"
logging on
}
@andyhd
andyhd / maybe-monad.js
Created January 16, 2012 01:02
Maybe monad in Javascript
function maybe(value) {
var obj = null;
function isEmpty() { return value === undefined || value === null }
function nonEmpty() { return !isEmpty() }
obj = {
map: function (f) { return isEmpty() ? obj : maybe(f(value)) },
getOrElse: function (n) { return isEmpty() ? n : value },
isEmpty: isEmpty,
nonEmpty: nonEmpty
}
@edorcutt
edorcutt / KySQLGitHook.krl
Created August 16, 2011 20:34
Kynetx Github commit webhook
ruleset a169xXXX {
meta {
name "KySQLGitHook"
description <<
Kynetx Github commit webhook
>>
author "Ed Orcutt, LOBOSLLC"
logging on
@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 a8x115 {
meta {
name "Twilio Module"
description <<
Utility methods for interacting with Twilio
>>
author "Sam Curren"
logging on
//keys for testing
@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
@MikeGrace
MikeGrace / twitter-addon-stream-item-clicked.krl
Created November 30, 2010 02:53
Example Twitter addon using KRL, subscribing to the stream_item_clicked event
ruleset a60x436 {
meta {
name "example-staf-app"
description <<
example-staf-app
>>
author "Mike Grace"
logging on
}