Skip to content

Instantly share code, notes, and snippets.

Tobias Lütke tobi

Block or report user

Report or block tobi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tobi
tobi / dark.css
Created Jul 1, 2019
Darkmode for slack
View dark.css
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; }
View keybase.md

Keybase proof

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:

View bm.rb
require 'benchmark'
def regular(a, b, c)
[a, b, c]
end
def keyword(a: 1, b: 2, c: 3)
[a, b, c]
end
@tobi
tobi / index.html
Created May 17, 2013
A CodePen by Tobias Lütke.
View index.html
<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>
@tobi
tobi / index.html
Created May 17, 2013
A CodePen by Tobias Lütke.
View index.html
<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>
@tobi
tobi / database.go
Created Jul 31, 2012
Error reading a datetime from
View database.go
package main
import (
_ "code.google.com/p/go-mysql-driver/mysql"
"database/sql"
"log"
"time"
)
func main() {
View forever.rb
trap("INT") { $done = true }
class Forever
def every(timespan, &block)
@threads ||= []
thread = Thread.new do
last_run = 0
while !$done
@tobi
tobi / mess.coffee
Created Jul 14, 2011
Quick access to useful timespans for reporting
View mess.coffee
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
@tobi
tobi / jsonp.html
Created Jul 9, 2011
jsonp mini implementation
View jsonp.html
<!DOCTYPE HTML>
<html>
<head>
<title>MINI JSONp</title>
</head>
<body>
<script>
View gist:911797
var ary = ['a', 'b', 'c'];
var funcs = [];
for (var i = 0; i < ary.length; i++) {
var c = ary[i]
funcs.push(function() { console.log(c) })
};
for (var i = 0; i < funcs.length; i++) {
You can’t perform that action at this time.