- Install Android Studio
- Install Android SDK
- Android Emulator
- In Android Studio, go to [File] -> [Project Structure] to find the SDK location.
- Write SDK location into
ANDROID_SDK
environment variable. - Download Android NDK from Building React Native from source docs and extract beside the
$ANDROID_SDK
folder. - Set extracted Android NDK location to
ANDROID_NDK
environment variable. - Clone React Native.
- Create a
local.properties
file in the React Native repository, as instructed in Building React Native from source docs. - Run android emulator.
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
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
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
#!/bin/bash | |
function cj() { | |
JOURNAL_HOME="$HOME/.journal" | |
FILE="$JOURNAL_HOME/$(date +%Y-%m-%d)".org | |
mkdir -p "$JOURNAL_HOME" | |
if [[ ! -f "$FILE" ]]; then | |
JOURNAL_COUNTER_FILE="$JOURNAL_HOME/.journal-counter" |
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
(defn raf-loop [func] | |
(let [stop (atom false) | |
id (atom nil)] | |
(reset! id (.requestAnimationFrame js/window | |
(fn helper [& args] | |
(when-not @stop | |
(reset! id (.requestAnimationFrame js/window helper)) | |
(try | |
(apply func args) | |
(catch js/Error ex |
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
function throttle(fn) { | |
let token = null; | |
return function thunk() { | |
if (token) { | |
return; | |
} | |
token = requestAnimationFrame(() => { | |
token = null; | |
thunk.apply(this, arguments); |
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
function debounce(fn) { | |
let token = null; | |
return function thunk() { | |
if (token) { | |
cancelAnimationFrame(token); | |
} | |
token = requestAnimationFrame(() => { | |
token = null; | |
thunk.apply(this, arguments); |
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
(defn adjacent [n coll] | |
(lazy-seq | |
(if-not (empty? coll) | |
(loop [i 0 | |
element [] | |
others coll] | |
(cond | |
(= i n) (cons element (adjacent n (rest coll))) | |
(empty? others) (list element) | |
:else (recur (inc i) (conj element (first others)) (rest others))))))) |
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
(() => { | |
var basscssAddons = [ | |
'responsive-margin', 'responsive-padding', 'forms', 'btn', | |
'btn-outline', 'btn-primary', 'btn-sizes', 'colors', | |
'background-colors', 'background-images', 'border-colors', 'darken', | |
'lighten', 'input-range', 'progress', 'all', 'media-object', | |
'highlight', 'highlight-dark', | |
]; | |
function createBasscssAddonLink(addon) { |
I hereby claim:
- I am rsnara on github.
- I am ramanpreet (https://keybase.io/ramanpreet) on keybase.
- I have a public key ASDsidiMvMNDxCwLYu9ofiegfUVpWmfFgXew3kqBa0mVbQo
To claim this, I am signing this object:
NewerOlder