defmodule Route do
import Weber.Route
require Weber.Route
route on("GET", "/new", :WeberTest.Main, :blah)
|> on("GET", "/", :WeberTest.Main, :index)
end
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
// "fmt" | |
"log" | |
"net/http" | |
"runtime" | |
"github.com/go-martini/martini" | |
"github.com/jmoiron/sqlx" | |
"github.com/martini-contrib/render" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VSJONP ― Very Simple JSONP | |
// ========================== | |
// | |
// Usage: | |
// fetchJsonP({ | |
// url: 'http://shit-no-cors.json', | |
// complete: function(response) { | |
// console.log(response); | |
// } | |
// }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
............................................... | |
............................................... | |
....6Cw..6Cw................................... | |
...1A4..4A4.................................... | |
..aV5..bV8..................................... | |
............................................... | |
............................................... | |
.........#........8.......g.......o......x#.... | |
...Vb.Va..0.......1.......2.......3............ | |
...81O5xT#111222333444555666777888999aaabb..... |
OlderNewer