Skip to content

Instantly share code, notes, and snippets.

View jonahoffline's full-sized avatar

Jonah Ruiz jonahoffline

View GitHub Profile
@garthk
garthk / profile
Created June 21, 2015 23:51
boot2docker 1.7.0 cert fix
wait4eth1() {
CNT=0
until ip a show eth1 | grep -q UP
do
[ $((CNT++)) -gt 60 ] && break || sleep 1
done
sleep 1
}
wait4eth1
@staltz
staltz / introrx.md
Last active July 27, 2024 04:59
The introduction to Reactive Programming you've been missing
@nbriz
nbriz / divRave.js
Last active March 15, 2023 18:05
just for fun :)
// PASTE THIS IN YOUR CONSOLE ( worx best in chrome )
// `~._.~`~._.~`~._.~`~._.~`~._.~`~._.~`~._.~`~._.~
// chrome console: OPTION + COMMAND + J
// firefox console: OPTION + COMMAND + K
// `~._.~`~._.~`~._.~`~._.~`~._.~`~._.~`~._.~`~._.~
// WARNING FLASHING LIGHTS!!!!
setInterval(function(){
d=document.getElementsByTagName('div');
for(i=0; i<d.length; i++) {
@tcjr
tcjr / messages.json
Last active December 25, 2015 06:59
Basic pagination with Ember
// The API accepts the page parameter and returns the pagination info in meta
{
"messages": [ ... ],
"meta": {
"pagination": {
"total_pages": 3,
"current_page": 1,
"total_count": 55
}
@ndarville
ndarville / business-models.md
Last active January 13, 2024 17:27
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@alexbevi
alexbevi / pre-commit.sh
Created August 23, 2012 12:05
Git pre-commit hook that checks ruby source files for Pry breakpoints
# Git pre-commit hook to check all staged Ruby (*.rb/haml/coffee) files
# for Pry binding references
#
# Installation
#
# ln -s /path/to/pre-commit.sh /path/to/project/.git/hooks/pre-commit
#
# Based on
#
# http://codeinthehole.com/writing/tips-for-using-a-git-pre-commit-hook/
@lucashungaro
lucashungaro / links.textile
Created August 14, 2010 16:36
Links de referência utilizados em minha palestra