Skip to content

Instantly share code, notes, and snippets.

View sscotth's full-sized avatar
🏠
𝄆 🍽 🛌 👨‍💻 𝄇

Scott Humphries sscotth

🏠
𝄆 🍽 🛌 👨‍💻 𝄇
View GitHub Profile

Android Deployment Instructions for Mac OS X

Deployment on Android device

  • Run: "sudo npm install -g cordova"
  • Run: "sudo npm install -g ionic"
  • Run: "brew install android-sdk"
  • Run: “android” then install the following packages
    • Tools: Andoird SDK Tools, Android SDK Platform-tools, Android SDK Build-tools
    • Android 4.4.2 (API 19)
  • Extras: Android Support Library
TTTTBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBTTTT
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
RRRRRRRRRRRTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
RWWWWRWWWWRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
RWWRRRWWRRRWWWWRWWWWRWWWWWWRWWRWRRRRWWRWWWWR
RWWWWRWWWWRWWRWRWWRWRRWWRWRRWWWWRRRRWWRWWRWR
RRRRWRRRRWRWWRRRWWRWRRWWRWRRWWRWRWWRWWRWWRWR
RWWWWRWWWWRWWWWRWWWWRRWWRWRRWWRWRWWRWWRWWWWR
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
@sscotth
sscotth / gist:55e7265c73b6d9bcbdbe
Last active November 23, 2015 21:53
Reset commits before push
git filter-branch -commit-filter 'if [ "$GIT_AUTHOR_EMAIL" = "scott@Scotts-MacBook-Pro.local" ]; then export GIT_AUTHOR_NAME="Scott Humphries"; export GIT_AUTHOR_EMAIL=git@sscotth.io; export GIT_COMMITTER_NAME="Scott Humphries"; export GIT_COMMITTER_EMAIL=git@sscotth.io; fi; git commit-tree "$@"'
/**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
*
* Copyright © 2015-2016 Konstantin Tarkus (@koistya)
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
@sscotth
sscotth / cell0.js
Last active August 31, 2016 00:21
ReactExample.carbide.com
import React from 'react'
import ReactDOM from 'react-dom'
ReactDOM.render(
<h1>Hello World</h1>,
document.getElementById('root')
)
@sscotth
sscotth / index.md
Created March 6, 2017 04:48
Collapsable Lists

Example

Hello World

Woo hoo!

Foo
@sscotth
sscotth / formdata.js
Last active March 28, 2017 08:25
Form serialization to object
[...new FormData(document.querySelector('form'))].reduce((o, [name, value]) => ({ ...o, [name]: value }), {})
const clone = thing => Array.isArray(thing) ? [...thing] : Object(thing) === thing ? {...thing} : thing
@sscotth
sscotth / table2pojo.js
Last active May 1, 2017 23:37
Converts an HTML table to a plain JavaScript Object (POJO)
[...document.querySelectorAll('tr')].slice(1).map(row=>([...document.querySelectorAll('th')].map(el=>el.textContent).reduce((obj,head,i)=>({...obj,[head]:row.querySelectorAll('td')[i].textContent}),{})))