Skip to content

Instantly share code, notes, and snippets.

View taixw2's full-sized avatar
🏠
Working from home

Xin Ouyang taixw2

🏠
Working from home
View GitHub Profile
@spruce-bruce
spruce-bruce / react-native-sqlite-migrations.js
Last active November 22, 2022 13:27
Sqlite migrations for react native for use with react-native-sqlite-storage and react-native-sqlite-2
/**
* this class decides what migrations to run and runs them
*/
class RNSqliteMigrator {
constructor(db) {
this._db = db;
this.initialize();
this._migrationsMap = {};
@vsouza
vsouza / .bashrc
Last active September 21, 2024 12:31
Golang setup in Mac OSX with HomeBrew. Set `GOPATH` and `GOROOT` variables in zshell, fish or bash.
# Set variables in .bashrc file
# don't forget to change your path correctly!
export GOPATH=$HOME/golang
export GOROOT=/usr/local/opt/go/libexec
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:$GOROOT/bin