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
/** | |
* 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. | |
*/ |
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
import React from 'react' | |
import ReactDOM from 'react-dom' | |
ReactDOM.render( | |
<h1>Hello World</h1>, | |
document.getElementById('root') | |
) |
This Gist was automatically created by Carbide, a free online programming environment.
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
// 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" ); |
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
How to remove consecutive new lines: search for ^(.*)(\r?\n\1)+$ and replacing with \1 |
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
' Comment | |
Sub Mac1() | |
ActiveSheet.PageSetup.LeftFooter = "&08&A" | |
ActiveSheet.PageSetup.RightFooter = "&08&Z&F" | |
End Sub |
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
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 "$@"' |
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
TTTTBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBTTTT | |
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT | |
RRRRRRRRRRRTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT | |
RWWWWRWWWWRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR | |
RWWRRRWWRRRWWWWRWWWWRWWWWWWRWWRWRRRRWWRWWWWR | |
RWWWWRWWWWRWWRWRWWRWRRWWRWRRWWWWRRRRWWRWWRWR | |
RRRRWRRRRWRWWRRRWWRWRRWWRWRRWWRWRWWRWWRWWRWR | |
RWWWWRWWWWRWWWWRWWWWRRWWRWRRWWRWRWWRWWRWWWWR | |
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR | |
TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT |
- 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