Skip to content

Instantly share code, notes, and snippets.

Japan Trip

Locations

Tokyo

Sony Building

Link here

language: node_js
node_js:
- 5
os:
- linux
after_success:
- chmod ugo+x ./deploy.sh
- ./deploy.sh
#!/bin/bash
# Split on "/", ref: http://stackoverflow.com/a/5257398/689223
REPO_SLUG_ARRAY=(${TRAVIS_REPO_SLUG//\// })
REPO_OWNER=${REPO_SLUG_ARRAY[0]}
REPO_NAME=${REPO_SLUG_ARRAY[1]}
DEPLOY_PATH=./dist
DEPLOY_SUBDOMAIN_UNFORMATTED_LIST=()
if [ "$TRAVIS_PULL_REQUEST" != "false" ]
@rfreitas
rfreitas / index.js
Last active December 8, 2016 10:34
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
var Onfido = require('onfido-sdk-ui')
var url = "https://gentle-gorge-17630.herokuapp.com/api"
var request = new XMLHttpRequest()
request.open('GET', url, true)
@rfreitas
rfreitas / index.js
Last active November 1, 2016 17:21
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
const ReactWebcam = require('opencv')
import java.text.Normalizer;
import android.database.Cursor;
import android.database.CursorWrapper;
import android.util.Log;
//by Ricardo derfreitas@gmail.com
//ref: https://gist.github.com/ramzes642/5400792 (the position retrieved is not correct)
//ref: http://stackoverflow.com/a/7343721/689223 (doesn't do string filtering)
@rfreitas
rfreitas / git-submodule-rm.sh
Created November 13, 2012 17:52 — forked from barraponto/git-submodule-rm.sh
git submodule-rm
#!/bin/bash
function actual_path() {
if [ [ -z "$1" ] -a [ -d $1 ] ]; then
echo $(cd $1 && test `pwd` = `pwd -P`)
return 0
else
return 1
fi
}