Skip to content

Instantly share code, notes, and snippets.

View joshq00's full-sized avatar

Josh Quintana joshq00

View GitHub Profile
// <input type="file" id="files" multiple/>
var fr = new FileReader;
fr.onload = function ( event ) {
window.result = event.target.result;
};
fr.readAsText( files.files[ 0 ] );
@joshq00
joshq00 / .eslintrc
Created March 30, 2015 18:01
eslint config
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": false,
"amd": false,
"mocha": false,
"jasmine": false,
"es6": true
@joshq00
joshq00 / .babelrc
Created October 29, 2015 23:39
Babel 6 : React / stage 0
{
"presets": [ "react", "es2015" ],
"plugins": [
"transform-es2015-modules-commonjs",
"transform-react-constant-elements",
]
}
@joshq00
joshq00 / PI.md
Created November 11, 2015 18:37
useful Pi links
@joshq00
joshq00 / hold-button-sublime.sh
Created November 12, 2015 14:11
apple : defaults
defaults write com.sublimetext.3 ApplePressAndHoldEnabled -bool false
@joshq00
joshq00 / encode.sh
Created January 20, 2016 22:35
encode with ssh key
#!/bin/bash
# generate pub key
ssh-keygen -f ~/.ssh/id_rsa.pub -e -m PKCS8 > ~/.ssh/id_rsa.pem.pub
# encrypt | decrypt
openssl rsautl -encrypt -pubin -inkey ~/.ssh/id_rsa.pem.pub -ssl <<< somestring |
openssl rsautl -decrypt -inkey ~/.ssh/id_rsa
@joshq00
joshq00 / .setup.md
Last active February 24, 2017 14:44
vim and tmux files

I use luan/vimfiles

He's also added a cheat sheet

Setup

# get vim set up
brew uninstall ctags
brew tap universal-ctags/universal-ctags
brew install universal-ctags --HEAD