Skip to content

Instantly share code, notes, and snippets.

@vmlinz
vmlinz / 1readme.md
Last active August 29, 2015 14:26 — forked from jszmajda/1readme.md
Data Serialization: JSON, MsgPack, ProtoBufs
@vmlinz
vmlinz / msgpack-rpc-libev-fail-install.md
Last active August 29, 2015 14:26
Install msgpack-rpc gem when it fails to compile libev
@vmlinz
vmlinz / rails_swagger.md
Created July 31, 2015 04:01
Rails and swagger
@vmlinz
vmlinz / pyenv_failure_homebrew_ssl.md
Last active August 29, 2015 14:26
pyenv build error with homebrew ssl

Note

CFLAGS="-I$(brew --prefix openssl)/include" \
LDFLAGS="-L$(brew --prefix openssl)/lib" \

pyenv install -v 3.4.3

Deploy Rails 4 app with Dokku on DigitalOcean

Install dokku

First create a Ubuntu 13.04 x64 droplet on DigitalOcean Control Panel

Then ssh with root account, run this in termianl:

$ wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh | sudo bash
@vmlinz
vmlinz / rails_dev_deploy_setup.md
Last active January 14, 2017 19:20
Rails ansible/docker deploy setup

Information of rails development and deployment setup

A list of rails development and deployment setup

Notes

  • Learn the IFTTT dash development env
  • Setup the services like db, nginx and others using docker with vagrant or docker-machine then develop rails/nodejs localy to gain development effeciency to avoid docker build every time

List of resourses

@vmlinz
vmlinz / rails_notes.md
Last active January 16, 2016 15:00
Notes on rails
@vmlinz
vmlinz / introrx.md
Last active August 27, 2015 05:11 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.

Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:

Rx.Observable.prototype.flatMapLatest(selector, [thisArg])

Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.