Skip to content

Instantly share code, notes, and snippets.

Avatar
👀
Watching you

C-A de Salaberry cadesalaberry

👀
Watching you
View GitHub Profile
View machine.js
const connectedStates = {
ready_to_call: {
on: {
JOIN: {
target: 'in_waiting_room',
cond: 'isEmployee',
},
START_CALL: {
target: 'in_call',
View en-US.json
[
{
"files": [
"www/components/popup.awards.js"
],
"id": "L7qEKRqku6K",
"key": "BADGE__EARNED__POINTS",
"new": false,
"timestamp": "2017-07-05T14:00:59.756Z",
"value": "",
@cadesalaberry
cadesalaberry / file
Last active Jul 21, 2017
freedom_public
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
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
cadesalaberry / install-gradle-centos.sh
Created Dec 9, 2015 — forked from parzonka/install-gradle-centos.sh
Install gradle on redhat/centos linux
View install-gradle-centos.sh
# installs to /opt/gradle
# existing versions are not overwritten/deleted
# seamless upgrades/downgrades
# $GRADLE_HOME points to latest *installed* (not released)
gradle_version=2.9
wget -N https://services.gradle.org/distributions/gradle-${gradle_version}-all.zip
sudo unzip -foq gradle-${gradle_version}-all.zip -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/gradle.sh
. /etc/profile.d/gradle.sh
View move-event-to-other-google-calendar.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
import datetime
import httplib2
import os
import json
from apiclient import discovery
import oauth2client
@cadesalaberry
cadesalaberry / opencv.sh
Created Nov 16, 2014
Compile OpenCV 3.0.0 of Ubuntu 14.04
View opencv.sh
version="$(wget -q -O - http://sourceforge.net/projects/opencvlibrary/files/opencv-unix | 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 http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
echo "Updating sources."
sudo apt-get -qq update
@cadesalaberry
cadesalaberry / Github-Rails-and-OpenShift.md
Last active Dec 28, 2015
A guide on how to setup OpenShift to use a rails repo on Github.
View Github-Rails-and-OpenShift.md

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.