This file contains hidden or 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
| language: node_js | |
| node_js: | |
| - 5 | |
| os: | |
| - linux | |
| after_success: | |
| - chmod ugo+x ./deploy.sh | |
| - ./deploy.sh |
This file contains hidden or 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
| #!/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" ] |
This file contains hidden or 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
| // 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) |
This file contains hidden or 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
| // 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') |
This file contains hidden or 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 java.text.Normalizer; | |
| import android.database.Cursor; | |
| import android.database.CursorWrapper; | |
| import android.util.Log; | |
| //by Ricardo [email protected] | |
| //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) |
This file contains hidden or 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
| #!/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 | |
| } |