Skip to content

Instantly share code, notes, and snippets.

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

Scott Humphries sscotth

🏠
𝄆 🍽 🛌 👨‍💻 𝄇
View GitHub Profile
/**
* 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 / index.md
Created March 6, 2017 04:48
Collapsable Lists

Example

Hello World

Woo hoo!

Foo
@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')
)
// Cross-browser xml parsing
var parseXML = function( data ) {
var xml, tmp;
if ( !data || typeof data !== "string" ) {
return null;
}
try {
if ( window.DOMParser ) { // Standard
tmp = new DOMParser();
xml = tmp.parseFromString( data , "text/xml" );
How to remove consecutive new lines: search for ^(.*)(\r?\n\1)+$ and replacing with \1
@sscotth
sscotth / module1.vba
Last active December 11, 2015 05:19
vba_gist_test
' Comment
Sub Mac1()
ActiveSheet.PageSetup.LeftFooter = "&08&A"
ActiveSheet.PageSetup.RightFooter = "&08&Z&F"
End Sub
@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 "$@"'
TTTTBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBTTTT
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
RRRRRRRRRRRTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
RWWWWRWWWWRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
RWWRRRWWRRRWWWWRWWWWRWWWWWWRWWRWRRRRWWRWWWWR
RWWWWRWWWWRWWRWRWWRWRRWWRWRRWWWWRRRRWWRWWRWR
RRRRWRRRRWRWWRRRWWRWRRWWRWRRWWRWRWWRWWRWWRWR
RWWWWRWWWWRWWWWRWWWWRRWWRWRRWWRWRWWRWWRWWWWR
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT

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