Skip to content

Instantly share code, notes, and snippets.

@ericktatsui
ericktatsui / android assign commands.txt
Created March 3, 2018 23:21 — forked from marty-wang/gist:5a71e9d0a6a2c6d6263c
Compile and deploy React Native Android app of Release version to device.
Disclaimer: The instructions are the collective efforts from a few places online.
Nothing here is my original. But I want to put them together in one place to save people from spending the same time as I did.
First off, bundle.
==================
1. cd to the project directory
2. Start the react-native packager if not started
3. Download the bundle to the asset folder:
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
@ericktatsui
ericktatsui / cloudSettings
Last active December 18, 2017 16:57
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-12-18T16:57:27.031Z","extensionVersion":"v2.8.7"}
@ericktatsui
ericktatsui / scrollTo.js
Last active February 20, 2016 16:45 — forked from james2doyle/scrollTo.js
a native scrollTo function in javascript that uses requestAnimationFrame and easing for animation
var scrollTo = function (opt) {
var self,
cache = {};
var scrollTo = function () {
self = this;
this.start = self.getCurrentPosition();
this.change = self.getNewPosition() - this.start;
this.currentTime = 0;