Skip to content

Instantly share code, notes, and snippets.

Watching you

C-A de Salaberry cadesalaberry

Watching you
View GitHub Profile
View machine.js
const connectedStates = {
ready_to_call: {
on: {
target: 'in_waiting_room',
cond: 'isEmployee',
target: 'in_call',
View en-US.json
"files": [
"id": "L7qEKRqku6K",
"new": false,
"timestamp": "2017-07-05T14:00:59.756Z",
"value": "",
cadesalaberry / file
Last active Jul 21, 2017
View file
{"0.7400788514721666":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgME4iPLliJVe+oaxO8l6ugtSrIvdg3hB7dA\r\nMPnWbo4JzciUGUCERvQNQ2YFjA5GcNREXxbreBl1r7IsDyzm+YjMXM3/AAAACDxn\r\naXRodWI+wv8AAACOBBATCABA/wAAAAWCWKh7xP8AAAACiwn/AAAACZC7fTlcLiuP\r\nxP8AAAAFlQgJCgv/AAAABJYDAQL/AAAAApsD/wAAAAKeAQAATkYA/3fDdv07CBPY\r\n0ulfToy20MgBXzABZuSClKASuoNLadq7AQCeyeG8u9Jx4psaDMqLUSG2sn++TRe2\r\nMUbBZFdHdJ0n9M7/AAAAVgQAAAAAEggqhkjOPQMBBwIDBIpcqZUzg91UaBjlF8Jp\r\n8rs1gjMsTOima8Vgnb59MbiBTK/LUMwQzhd3UslYBU2/odE6xJtLDozEdTj1WLHr\r\ntTwDAQgHwv8AAABtBBgTCAAf/wAAAAWCWKh7xP8AAAAJkLt9OVwuK4/E/wAAAAKb\r\nDAAAF9cA/3CcrV5kmcWWSEEM6Yv5dUAU9tsFeGLrAYXKNiJ+tQzlAP9NXk/2Y1dn\r\nOxvhuxUhF+QJjIRBaEdduEwstPKzRpiB2g==\r\n=NK7v\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n","0.8316142805972575":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgME4iPLliJVe+oaxO8l6ugtSrIvdg3hB7dA\r\nMPnWbo4JzciUGUCERvQNQ2YFjA5GcNREXxbreBl1r7IsDyzm+YjMXM3/AAAACDxn\r\naXRodWI+wv8AAACOBB
cadesalaberry / mithril-touch.js
Created Mar 17, 2016 — forked from webcss/mithril-touch.js
mithril-touch, consume touch and mouse events evenly with mithril
View mithril-touch.js
/* DOM touch support module
if (!window.CustomEvent) {
window.CustomEvent = function (event, params) {
params = params || { bubbles: false, cancelable: false, detail: undefined };
var evt = document.createEvent('CustomEvent');
evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);
return evt;
cadesalaberry /
Created Dec 9, 2015 — forked from parzonka/
Install gradle on redhat/centos linux
# installs to /opt/gradle
# existing versions are not overwritten/deleted
# seamless upgrades/downgrades
# $GRADLE_HOME points to latest *installed* (not released)
wget -N${gradle_version}
sudo unzip -foq gradle-${gradle_version} -d /opt/gradle
sudo ln -sfn gradle-${gradle_version} /opt/gradle/latest
sudo printf "export GRADLE_HOME=/opt/gradle/latest\nexport PATH=\$PATH:\$GRADLE_HOME/bin" > /etc/profile.d/
. /etc/profile.d/
# -*- coding: utf-8 -*-
import datetime
import httplib2
import os
import json
from apiclient import discovery
import oauth2client
cadesalaberry /
Created Nov 16, 2014
Compile OpenCV 3.0.0 of Ubuntu 14.04
version="$(wget -q -O - | egrep -m1 -o '\"[0-9](\.[0-9]+)+' | cut -c2-)"
echo "Installing OpenCV" $version
mkdir OpenCV
cd OpenCV
echo "Adding multiverse to your sources if needed. (for libfaac-dev)"
dpkg -s libfaac-dev 2>/dev/null >/dev/null || echo "deb trusty main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
echo "Updating sources."
sudo apt-get -qq update
cadesalaberry /
Last active Dec 28, 2015
A guide on how to setup OpenShift to use a rails repo on Github.

Github, Rails and OpenShift

Here is a guide on how to setup OpenShift to use a rails repo on Github for CodeJam@McGill.

The Suicidal Way

Starting from scratch, first create your application:

rhc app create {appname} -t ruby-1.9

You can’t perform that action at this time.