Skip to content

Instantly share code, notes, and snippets.

View sleeptillseven's full-sized avatar
💭
I may be slow to respond.

Christoph Jasinski sleeptillseven

💭
I may be slow to respond.
  • Bern, Switzerland
View GitHub Profile
sample_blog $ padrino-gen admin
=> Located unlocked Gemfile for development
create admin
create admin/app.rb
create admin/controllers/base.rb
create admin/controllers/sessions.rb
create public/admin
create public/admin/stylesheets/base.css
create public/admin/stylesheets/themes/amro/style.css
create public/admin/stylesheets/themes/bec/style.css
@sleeptillseven
sleeptillseven / erlang_vm.md
Last active July 18, 2016 13:44
Collection of interesting resources for studying the Erlang VM

List of Interesting Resources Describing the Erlang VM

Hitchhiker's guide to the Erlang VM

Author: Robert Virding (Co-inventor of Erlang)

Slides: pdf

Video: youtube

@sleeptillseven
sleeptillseven / 0_reuse_code.js
Created January 12, 2014 16:54
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@sleeptillseven
sleeptillseven / dependencies.md
Created November 22, 2012 06:41
Object-Oriented Design in Ruby
# Dependency Management
## Dependency
* Should be exposed explicitly
* Should be isolated
* Should be exposed in an own method
## Interaction Between Objects/Interfaces
@sleeptillseven
sleeptillseven / latency.txt
Created July 27, 2012 09:26 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms
@sleeptillseven
sleeptillseven / alias.sh
Created January 18, 2012 10:43
aliases for git console on windows
alias dir="ls -lsha"
alias gs="git status"
alias gsv="git status -v"
alias gl="git log"
alias gc="git commit -v"
alias gd="git diff -v"
alias gp="git push -u origin"
@sleeptillseven
sleeptillseven / install.py
Created December 20, 2011 11:25
Install Sublime Package Control
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler({'http': 'http://myproxy.com:8080'}))); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'
@sleeptillseven
sleeptillseven / ring.erl
Created December 15, 2011 20:02
spawning a lot of processes
-module(ring).
-export([start/1]).
-export([start_proc/2]).
start(Num) ->
start_proc(Num, self()).
start_proc(0, Pid) ->
Pid ! ok;