Skip to content

Instantly share code, notes, and snippets.

<meta charset="utf-8">
<style >*{
margin
:0;}
a {color : gold }
[e] {font-weight : bold }
[s] {white-space : pre }
[t] {text-decoration : overline }
require 'faye/websocket'
require "sinatra/activerecord"
class Pubsub
KEEPALIVE_TIME = 15 # in seconds
def initialize(app)
@app = app
@clients = []
@channel = "test"
@STRd6
STRd6 / reflect_angle.coffee
Created November 4, 2015 15:38
Reflect Angle
reflect = (normal, incident) ->
2 * normal - incident
@STRd6
STRd6 / heroku.coffee
Created June 13, 2016 17:19
Make requests to the Heroku API from the browser. Note accept and authorization headers.
APIGenerator = require "./api_generator"
{extend} = require "../source/util"
module.exports = (ajax) ->
requester = (path, options={}) ->
options = extend
url: path
method: "GET"
dataType: "json"

Keybase proof

I hereby claim:

  • I am strd6 on github.
  • I am danielx (https://keybase.io/danielx) on keybase.
  • I have a public key ASC8LhNkWD02QHx2inQw_CTsDiy0iw2mBv4DPTaoTYVf1wo

To claim this, I am signing this object:

Hello this is a test