Skip to content

Instantly share code, notes, and snippets.

View rexlow's full-sized avatar
🏸
Need to workout more!

Rex Low rexlow

🏸
Need to workout more!
View GitHub Profile
@rexlow
rexlow / md
Last active April 22, 2023 16:11
Run React Native on specific iOS simulator version
To add a simulator
Choose Hardware > Device > Manage Devices.
Xcode opens the Devices window.
At the bottom of the left column, click the Add button (+).
In the dialog that appears, enter a name in the Simulator Name text field and choose the device from the Device Type pop-up menu.
//by default
@rexlow
rexlow / 0-startup-overview.md
Created March 15, 2017 16:03 — forked from dideler/0-startup-overview.md
Startup Engineering notes
@rexlow
rexlow / .eslintrc
Created April 5, 2017 07:52
Setup eslint in react-native project
// Make sure eslint is install in your project or gloablly
// In your project
npm install --save-dev babel-eslint eslint eslint-plugin-react
// Create .eslintrc
{
"parser": "babel-eslint",
"env": {
"browser": true
@rexlow
rexlow / init.zsh
Created April 16, 2017 03:51
Init react-native with specific version
$ react-native init newproject --version [email protected]
@rexlow
rexlow / react-native-maps-enable-google-maps-instructions.md
Created May 26, 2017 05:13 — forked from heron2014/react-native-maps-enable-google-maps-instructions.md
Visual instructions how to enable Google Maps on IOS using react-native-maps

Visual instructions how to enable Google Maps on IOS using react-native-maps

This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps

Steps from scratch:

1.react-native init GoogleMapPlayground

2. cd GoogleMapPlayground

@rexlow
rexlow / keybindings.json
Created July 7, 2017 05:35
reactotron vscode shortcut
// add this snippet at the bottom of the file, cmd+l will present you logging shortcut
{
"key": "cmd+l",
"command": "editor.action.insertSnippet",
"args": {
"snippet": "Reactotron.log('')"
}
}
@rexlow
rexlow / conda.sh
Last active February 20, 2022 07:23
Install miniconda, tensorflow, keras, theano
bash Miniconda3-latest-MacOSX-x86_64.sh
// append env path
conda install jupyter matplotlib pandas scipy Pillow scikit-learn
conda install -c conda-forge keras tensorflow
// for some reasons tensorflow installed = 1.0.0, update here
@rexlow
rexlow / install.sh
Last active March 23, 2023 09:26
Enable zsh in Gcloud shell
##
# This is an adoption from Oh My Zsh for Google Cloud Shell
# author - bobvanluijt
# source - https://github.com/bobvanluijt/google-cloud-shell-pro-zsh
##
main() {
# Install zsh
sudo apt-get -qq update
@rexlow
rexlow / rand_perm.c++
Last active February 28, 2018 10:29
Random Permutation in C++
// random_shuffle example
#include <iostream> // std::cout
#include <algorithm> // std::random_shuffle
#include <vector> // std::vector
#include <ctime> // std::time
#include <cstdlib> // std::rand, std::srand
using namespace std;
const int SIZE = 5;
@rexlow
rexlow / Lab4-TSP.c++
Last active March 7, 2018 06:11
Travelling Salesman Problem
#include <iostream>
#include <algorithm>
#include <iterator>
#include <vector>
#include <cstdlib>
#include <chrono>
using namespace std;
// constant
const int NUM_OF_GENE = 5;