Skip to content

Instantly share code, notes, and snippets.

@graue
graue / gist:3915735
Created October 19, 2012 01:20
Tentd notification errors
TentD::Model::NotificationSubscription::NotificationError
/home/graue/.bundler/ruby/1.9.1/tentd-0cc6b9802bef/lib/tentd/model/notification_subscription.rb:79:in `notify_about'
/home/graue/.bundler/ruby/1.9.1/tentd-0cc6b9802bef/lib/tentd/model/notification_subscription.rb:70:in `notify'
/home/graue/.bundler/ruby/1.9.1/tentd-0cc6b9802bef/lib/tentd/notifications/girl_friday.rb:15:in `block in <class:Notifications>'
/var/lib/gems/1.9.1/gems/girl_friday-0.10.0/lib/girl_friday/work_queue.rb:147:in `call'
/var/lib/gems/1.9.1/gems/girl_friday-0.10.0/lib/girl_friday/work_queue.rb:147:in `block (2 levels) in start'
/var/lib/gems/1.9.1/gems/girl_friday-0.10.0/lib/girl_friday/actor.rb:86:in `call'
/var/lib/gems/1.9.1/gems/girl_friday-0.10.0/lib/girl_friday/actor.rb:86:in `block in spawn_link'
/var/lib/gems/1.9.1/gems/girl_friday-0.10.0/lib/girl_friday/actor.rb:69:in `call'
/var/lib/gems/1.9.1/gems/girl_friday-0.10.0/lib/girl_friday/actor.rb:69:in `block (2 levels) in spawn'
@graue
graue / Change_Tent.is_background_color.user.js
Created October 16, 2012 15:12
GreaseMonkey script to change Tent.is background color
// ==UserScript==
// @name Change Tent.is background color
// @namespace https://graue.tent.is
// @description Changes the background color of Tent.is pages
// @include https://*.tent.is/*
// @version 1
// @grant none
// ==/UserScript==
document.body.style.background = "limegreen";
@graue
graue / pi.clj
Created August 29, 2012 16:46
Clojure code to estimate pi
; for some reason it's not finding clojure.contrib.math
;(ns pi-estimator
; (:require clojure.contrib.math))
; this didn't work either:
;(ns pi-estimator
; (:use [clojure.contrib.math :only [abs]]))
(defn abs [x]
(if (>= x 0)