Skip to content

Instantly share code, notes, and snippets.

View yazgazan's full-sized avatar

Guillaume de Sagazan yazgazan

  • @Datumprikkker
  • The Netherlands
View GitHub Profile
genetics = require '../lib/genetics'
Genetic = genetics.Genetic
Solution = genetics.Solution
gen = null
mod = 1000
ratio = 100
modb = Math.round(mod / ratio)
genetics = require('../lib/genetics');
Genetic = genetics.Genetic
Solution = genetics.Solution
var mod = 1000;
var ratio = 100;
var gen;
modb = Math.round(mod / ratio);
(for 1 {
echo -n "useless";
sleep 1;
echo " line"
}) | :clock # this is the clock
any_program | :signal # this is the signal
:clock,signal | grep -v "useless line"
@yazgazan
yazgazan / IntercomHelper.android.js
Last active January 18, 2017 05:25
react bridge for Intercom 3.+
import NativeModules from 'NativeModules';
const Intercom = NativeModules.Intercom;
export default class IntercomHelper {
static registerWithUserId(userId) {
Intercom.registerIdentifiedUser(userId);
}
static reset() {
Intercom.reset();