This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import NativeModules from 'NativeModules'; | |
const Intercom = NativeModules.Intercom; | |
export default class IntercomHelper { | |
static registerWithUserId(userId) { | |
Intercom.registerIdentifiedUser(userId); | |
} | |
static reset() { | |
Intercom.reset(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
genetics = require('../lib/genetics'); | |
Genetic = genetics.Genetic | |
Solution = genetics.Solution | |
var mod = 1000; | |
var ratio = 100; | |
var gen; | |
modb = Math.round(mod / ratio); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
genetics = require '../lib/genetics' | |
Genetic = genetics.Genetic | |
Solution = genetics.Solution | |
gen = null | |
mod = 1000 | |
ratio = 100 | |
modb = Math.round(mod / ratio) |