Skip to content

Instantly share code, notes, and snippets.

Avatar

Galileo Sanchez galileopy

View GitHub Profile
View gsanchez.id.rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDiegOktoGBnG4ns34Y8/O+l6y3R1+5Nu0e4BK5yeUAWwdBMFhro5oXy+kFH89Zcx+KbcWeJh2W7kjv9ezhNxq+Ji8NH+F+Up2rh0uG6gYBOnrTCFUWzf5qzilZpFcpSRhdU2fV4Tvs9Xy1mCTb9rHfylspv2B1grD8gsI88Rtp+jir+tECHcaeahCqIZwATNwvQmO34fNFqabElbHhCJ9paWDRY10cLlxadzZzZhHL/b6cqI0VZ/CzEozGsiQPEVdfNitXoVhdAotSacs6CqwOuoFLZm9RH+TkPdLaHpsf3YD5aj3g67ULBH5gbXiT1dGd4KCWpf7xjvCk4wcFYdSbqFTg3DAlyaig2gnfjlU6Y+FxUie4NIFyT2lesnB6btdi9BS7GEbrassnqU3/4/yDKcugKXgdp6eSkJ2l10lIaK39V8SDp5eiEEML+SX0XJGzBWZJRlHfsEdXcoebiuTMRDHGAl8dY5BE/Q0rFemOqo7mMWSUP6KFAnQyJXUxkbl8I1DRSDK6+xR9il/k5U0IBELD99nljrY0pZOzAkqkjdYJnixpARTaR3rD1Ru3tDLioZQvPANog14fVYuusUOck66+hhhERVWOqTuBpTmOmsBrdZSaByDO5ITiCKjwMmSceGI78vpJaPt0794tRu03yZxWp+N1uDKGAQ7fGGlwGQ== gsanchez@cnc.una.py
@galileopy
galileopy / mockDate.js
Created Nov 7, 2018
Mocks the global Date class
View mockDate.js
function mockDate(date) {
Date = class extends Date {
constructor() {
return super(date);
}
};
}
mockDate('2018-02-28T09:39:59');
View index.thread.js
import { self } from 'react-native-threads'
// realmP = Realm.open(options)
import { realmP } from './src/realm/schema'
// listen for messages
self.onmessage = (message) => {
const data = JSON.parse(message)
const { id, operation } = data
switch (operation) {
case 'query':
View keybase.md

Keybase proof

I hereby claim:

  • I am galileopy on github.
  • I am galileo_radix (https://keybase.io/galileo_radix) on keybase.
  • I have a public key whose fingerprint is 851E 69E5 4F50 A1A1 440C C474 6698 9CAA D15F 6AC3

To claim this, I am signing this object:

View croscompile.sh
sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6 libbz2-1.0
export PR=`pwd`
export OPT=$PR/opt
export DIETPI=$PR/opt/dietpi/dietpi.img
export RPI=$PR/opt/rpi
export _QT=$PR/opt/rpi/qt5
#export LINARO=$PR/opt/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/
export LINARO=$PR/opt/rpi/gcc-4.7-linaro-rpi-gnueabihf/bin/
export MNT=/mnt/dietpi