Skip to content

Instantly share code, notes, and snippets.

View philippeback's full-sized avatar
👽
Hackin'

Philippe Back philippeback

👽
Hackin'
View GitHub Profile

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
@philippeback
philippeback / introrx.md
Last active August 29, 2015 14:08 — forked from staltz/introrx.md

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.

# tmux-mouse-toggle
# via http://qiita.com/kawaz/items/7b15e18ca8e072c1dc57
if [[ -n $TMUX ]]; then
if [[ -z "$(tmux show-options -gw mode-mouse | grep off)" ]]; then
tmux set-option -gq mouse-utf8 off
tmux set-option -gq mouse-resize-pane off
tmux set-option -gq mouse-select-pane off
tmux set-option -gq mouse-select-window off
tmux set-window-option -gq mode-mouse off
@philippeback
philippeback / d3lib.md
Last active August 29, 2015 14:23 — forked from widged/d3lib.md

chartFactory

/affini-tech/ChartFactory

Based on D3.JS and Dimple, ChartFactory provide the ability to build quickly D3.JS charts without coding any lines of javascript. Just define your dashboard in a JSON and voila !

charts: [
        {id:'chart1',
         width:800,height:250,

xAxis:{type:'Category',field: "Month",orderRule:'Date'},

@philippeback
philippeback / gist:a8052ce572a687ebe830d301121268dc
Created October 23, 2016 23:13 — forked from seandenigris/gist:1438930
Sample Metacello Workflow
"Describe Project Structure to Create configuration"
MetacelloToolBox
createBaseline: '1.0-baseline'
for: 'SimpleApplescript' "Project name"
repository: 'http://squeaksource.com/SPDPlayground'
requiredProjects: #('OSProcess')
packages: #('CommandShell-Piping' 'SimpleApplescript')
repositories: #()
dependencies: {
('SimpleApplescript' -> #('CommandShell-Piping')).
@philippeback
philippeback / ambari.md
Created November 15, 2016 15:00
ambari setup

Ambari uses a local postgres db by default.This page describes how to use ambari-server with remote postgres server.

Install

Ambari is installed on centos 6.4 with the following command:

curl -so /etc/yum.repos.d/ambari.repo http://public-repo-1.hortonworks.com/ambari/centos6/1.x/GA/ambari.repo
yum repolist
yum -y install ambari-server
@philippeback
philippeback / ambari.md
Created November 15, 2016 15:00
ambari setup

Ambari uses a local postgres db by default.This page describes how to use ambari-server with remote postgres server.

Install

Ambari is installed on centos 6.4 with the following command:

curl -so /etc/yum.repos.d/ambari.repo http://public-repo-1.hortonworks.com/ambari/centos6/1.x/GA/ambari.repo
yum repolist
yum -y install ambari-server
@philippeback
philippeback / ambari.md
Created November 15, 2016 15:00
ambari setup

Ambari uses a local postgres db by default.This page describes how to use ambari-server with remote postgres server.

Install

Ambari is installed on centos 6.4 with the following command:

curl -so /etc/yum.repos.d/ambari.repo http://public-repo-1.hortonworks.com/ambari/centos6/1.x/GA/ambari.repo
yum repolist
yum -y install ambari-server
@philippeback
philippeback / forward.md
Created March 12, 2017 17:42 — forked from jamestalmage/forward.md
Using Firebase to Authenticate to Google Drive

Note: There is a lot of information here, but if I have provided a link, it is probably something you should click on and read. OAuth is a complex enough subject on it's own, and hacking these two services together only adds to it.

Even so, I have found Firebase's API to be simpler than almost any other OAuth solution I have explored. When all is said and done, the important bits of code related to authentication is actually less than 10 lines. If you have ever tried to implement your own OAuth flow before, you know how amazing that is.

In the end, it may be worth using Firebase for authentication, even if that's the ONLY thing you use it for.

@philippeback
philippeback / forward.md
Created March 12, 2017 17:42 — forked from jamestalmage/forward.md
Using Firebase to Authenticate to Google Drive

Note: There is a lot of information here, but if I have provided a link, it is probably something you should click on and read. OAuth is a complex enough subject on it's own, and hacking these two services together only adds to it.

Even so, I have found Firebase's API to be simpler than almost any other OAuth solution I have explored. When all is said and done, the important bits of code related to authentication is actually less than 10 lines. If you have ever tried to implement your own OAuth flow before, you know how amazing that is.

In the end, it may be worth using Firebase for authentication, even if that's the ONLY thing you use it for.