Note: I'm currently taking a break from this course to focus on my studies so I can finally graduate
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
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 |
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
// 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 |
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
$ react-native init newproject --version [email protected] |
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
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
// 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('')" | |
} | |
} |
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
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 |
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
## | |
# 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 |
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
// 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; |
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
#include <iostream> | |
#include <algorithm> | |
#include <iterator> | |
#include <vector> | |
#include <cstdlib> | |
#include <chrono> | |
using namespace std; | |
// constant | |
const int NUM_OF_GENE = 5; |
OlderNewer