Few word. Big meaning.
Be Primitive and Concise.
Fast answer. Clear path.
Like fire: small, bright, useful.
Talk like caveman. Save tokens. Show key info first. Add small joke. Light poetry when natural.
brew cask install adoptopenjdk8
brew cask install android-sdk
For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):
List All System Images Available for Download: sdkmanager --list | grep system-images
Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"
| # This is a multi-stage build to not spill the contents of the deploy_key | |
| FROM mhart/alpine-node:10 as base | |
| # We need git and openssh to resolve `git+ssh` links in package.json | |
| RUN apk update \ | |
| && apk add git openssh | |
| WORKDIR /usr/src | |
| COPY package*.json ./ |
| const path = require('path'); | |
| const getWorkspaces = require('get-yarn-workspaces'); | |
| const blacklist = require('metro-config/src/defaults/blacklist'); | |
| const workspaces = getWorkspaces(__dirname); | |
| module.exports = { | |
| projectRoot: path.resolve(__dirname, 'packages/app'), |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " Font | |
| :set guifont=Source\ Code\ Pro:h14 | |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " Hide pointless junk at the bottom, doesn't work in .vimrc for some reason? | |
| :set laststatus=0 | |
| :set noshowmode "don't show --INSERT-- | |
| :set noruler "don't show line numbers/column/% junk |
| @Override | |
| public void onCreate() { | |
| super.onCreate(); | |
| ///////// Add lines below this to capture times of the large sections | |
| final String TAG = "RN_STARTUP"; // If you already have a TAG for the app, use that instead. | |
| final TimingLogger timingLogger = new TimingLogger("AXE", "REACT_NATIVE_STARTUP"); | |
| timingLogger.reset(); | |
| ReactMarker.addListener(new ReactMarker.MarkerListener() { | |
| @Override |
| // Adds a lovely fade in of the modal | |
| // and a gentle slide-down of the modal content | |
| class Demo extends React.Component { | |
| state = { showDialog: false }; | |
| render() { | |
| return ( | |
| <div> | |
| <button onClick={() => this.setState({ showDialog: true })}> | |
| Show Dialog | |
| </button> |