Skip to content

Instantly share code, notes, and snippets.

View tobyhede's full-sized avatar
👨‍🚀
...

Toby Hede tobyhede

👨‍🚀
...
View GitHub Profile
@tobyhede
tobyhede / chords.orca
Created June 12, 2022 13:19
Orca Chords
...............................................
...............................................
....6Cw..6Cw...................................
...1A4..4A4....................................
..aV5..bV8.....................................
...............................................
...............................................
.........#........8.......g.......o......x#....
...Vb.Va..0.......1.......2.......3............
...81O5xT#111222333444555666777888999aaabb.....

Title

Short present tense imperative phrase, less than 50 characters, like a git commit message.

Status

proposed, accepted, rejected, deprecated, superseded, etc.

Context

What is the issue that we're seeing that is motivating this decision or change.

Keybase proof

I hereby claim:

  • I am tobyhede on github.
  • I am tobyhede (https://keybase.io/tobyhede) on keybase.
  • I have a public key whose fingerprint is 9AA8 2B2E D31F EC90 2F24 7373 0678 0493 F70A EDB6

To claim this, I am signing this object:

@tobyhede
tobyhede / generate_tseries.sql
Created June 25, 2016 23:58
Easily generate timeseries data in PostgreSQL
CREATE TABLE tseries AS
SELECT ts, (random()*9999)::int as count from generate_series(
'2015-01-01'::timestamptz,
'2016-06-01'::timestamptz,
'1 sec'::interval
) date;
@tobyhede
tobyhede / Dockerfile
Created November 20, 2015 03:37
Elixir Phoenix Dockerfile
FROM ubuntu:14.04.3
MAINTAINER Toby Hede <>
ENV ELIXIR_VERSION 1.1.1
ENV PORT 80
ENV MIX_ENV prod
# Elixir requires UTF-8
RUN locale-gen en_US.UTF-8
@tobyhede
tobyhede / vsjsonp.js
Last active August 29, 2015 14:13 — forked from juliocesar/vsjsonp.js
// VSJONP ― Very Simple JSONP
// ==========================
//
// Usage:
// fetchJsonP({
// url: 'http://shit-no-cors.json',
// complete: function(response) {
// console.log(response);
// }
// });
#!/usr/bin/env bash
uninstall() {
list=`gem list --no-versions`
for gem in $list; do
gem uninstall $gem -aIx
done
gem list
gem install bundler
}
package main
import (
// "fmt"
"log"
"net/http"
"runtime"
"github.com/go-martini/martini"
"github.com/jmoiron/sqlx"
"github.com/martini-contrib/render"
<script type="text/jsx">
/** @jsx React.DOM */
var AppList = React.createClass({
render: function() {
var elements = this.state.apps.map(function(app) {
return <AppElement app={app} />
})
return <ul>{elements}</ul>;
defmodule Route do

  import Weber.Route
  require Weber.Route

  route on("GET", "/new", :WeberTest.Main, :blah)
    |>  on("GET", "/", :WeberTest.Main, :index)

end