I hereby claim:
- I am tobi on github.
- I am tobi (https://keybase.io/tobi) on keybase.
- I have a public key whose fingerprint is 7D83 588B B379 6236 C5E1 E2FB 05AC 86DA DD36 CAA2
To claim this, I am signing this object:
# Rails production setup via SQLite3 made durable by https://litestream.io/ | |
# Copy this to Dockerfile on a fresh rails app. Deploy to fly.io or any other container engine. | |
# | |
# try locally: docker build . -t rails && docker run -p3000:3000 -it rails | |
# | |
# in production you might want to map /data to somewhere on the host, | |
# but you don't have to! | |
# | |
FROM ruby:3.0.2 |
#!/usr/bin/env ruby | |
# gem install active_support | |
require 'active_support/inflector' | |
require 'active_support/core_ext/string' | |
# gem install webrick (only ruby3) | |
require 'webrick' | |
# gem install mechanize |
body { background: #222; color: #e6e6e6; } | |
a { color: #949494; } | |
a:link, a:visited { color: #949494; } | |
a:hover, a:active, a:focus { color: #c7c7c7; } | |
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; } |
I hereby claim:
To claim this, I am signing this object:
require 'benchmark' | |
def regular(a, b, c) | |
[a, b, c] | |
end | |
def keyword(a: 1, b: 2, c: 3) | |
[a, b, c] | |
end |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://d3js.org/d3.geo.projection.v0.min.js"></script> | |
<script src="http://d3js.org/topojson.v0.min.js"></script> |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script src="http://d3js.org/d3.geo.projection.v0.min.js"></script> | |
<script src="http://d3js.org/topojson.v0.min.js"></script> |
package main | |
import ( | |
_ "code.google.com/p/go-mysql-driver/mysql" | |
"database/sql" | |
"log" | |
"time" | |
) | |
func main() { |
trap("INT") { $done = true } | |
class Forever | |
def every(timespan, &block) | |
@threads ||= [] | |
thread = Thread.new do | |
last_run = 0 | |
while !$done |
selectors: -> | |
today = new Date() | |
today.setMinutes(0) | |
today.setHours(0) | |
today.setSeconds(0) | |
day = 1000*60*60*24 | |
yesterday = today - day | |
lastSunday = today - today.getDay() * day |