Skip to content

Instantly share code, notes, and snippets.

View NicolasRitouet's full-sized avatar

Nicolas Ritouet NicolasRitouet

View GitHub Profile

The introduction to Reactive Programming you've been missing

(by @andrestaltz)

So you're curious in learning this new thing called (Functional) Reactive Programming (FRP).

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.

Keybase proof

I hereby claim:

  • I am NicolasRitouet on github.
  • I am nicolasritouet (https://keybase.io/nicolasritouet) on keybase.
  • I have a public key whose fingerprint is A3A7 2BD3 4C6B 1534 106D F86B 634F A803 AD74 62F1

To claim this, I am signing this object:

@NicolasRitouet
NicolasRitouet / README.md
Last active August 29, 2015 14:10
Default readme.md for dpd modules

dpd-mymodule

Description

Here, describe what this module is about

Getting started

This module requires deployd ~0.7.0.

If you haven't used Deployd before, make sure to read the documentation.

@NicolasRitouet
NicolasRitouet / gitworkflow.md
Last active August 29, 2015 14:11
Git workflow for a nice PR on github

Development phase

For open source projects, it's important to keep the history tree as clean as possible. A clean history tree will facilitate an eventual rollback. Having an easy way to rollback PR means that you can accept more PR.

  1. fork the project https://github.com/deployd/deployd/fork
  2. Define upstream as new remote git remote add upstream git@github.com:deployd/deployd.git
  3. create a new branch git checkout -b feature
  4. add your changes
  5. add tests
  6. commit (multiple times if necessary) git add . && git commit -m "Fix: ..."
@NicolasRitouet
NicolasRitouet / CONTRIBUTING.md
Last active August 29, 2015 14:12
Improve contributing.md of deployd project

Contributing to Deployd

We'd love to have your contribution to deployd. There are several ways to contribute:

// add a table of content of link to different parts with the following list:

  • Build an external module for deployd
  • Open bugs and feature requests for deployd core itself
  • Submit Pull Requests to deployd core
  • Improve documentation
@NicolasRitouet
NicolasRitouet / ctx.js
Created February 13, 2015 09:18
Deployd ctx object inside event
{ url: '/e59f6412949f29b9',
req:
{ _readableState:
{ highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: false,
ended: true,
@NicolasRitouet
NicolasRitouet / changelog.js
Last active June 1, 2023 11:10
Changelog.js
#!/usr/bin/env node
// TODO(vojta): pre-commit hook for validating messages
// TODO(vojta): report errors, currently Q silence everything which really sucks
'use strict';
var child = require('child_process');
var fs = require('fs');
var util = require('util');
@NicolasRitouet
NicolasRitouet / gist-to-the-community.md
Last active November 13, 2016 19:17
Deployd is not dead

Hi deployd community,

tl;dr Deployd has a new team of maintainers, new release of Deployd, contributions more than welcome.

My name is Nicolas Ritouet, I'm a new member of the deployd team. I met Jeffrey Cross at a conference a few months ago, told him that I was a big fan of Deployd and how sad I was to see the project dying (as lot's of you probably). We discussed and I proposed my help to keep maintaining the project.

I joined the deployd team and started to work on the many Pull Requests that were waiting for a while.

@NicolasRitouet
NicolasRitouet / dokku-alt-DO.md
Last active August 29, 2015 14:18
Dokku alt on DO

How to install Dokku-alt on Digital Ocean

  1. If you want to use your own domain, add the following dns records in the DNS area: Imgur
  2. Create a 5$ droplet on DO with Ubuntu 14.04 x64. Hostname should be your domain name.
  3. SSH into the droplet and create a swap file:
dd if=/dev/zero of=/swapfile bs=1024 count=256k
mkswap /swapfile
swapon /swapfile
@NicolasRitouet
NicolasRitouet / host-aws-s3-domain-name.md
Last active April 25, 2022 11:21
Host your static website on AWS S3 and map your custom domain name on Gandi

This tutorial explains how to host your static website on Amazon Web Service S3 with your custom domain name on gandi (or on any other registrar).

Create a bucket on AWS s3 on the closest region (Frankfurt for Europeans).

The name of the bucket should be your domain name: example.com

Enable website hosting

Go to bucket properties, then Static website hosting and select enable website hosting. Index document should be index.html. Click save