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
<ion-header-bar align-title="center" class="bar-positive"> | |
<h1 class="title">Fast Start</h1> | |
<button class="button icon ion-log-out button-clear logout_button" ng-click="logout()"></button> | |
</ion-header-bar> | |
<ion-content style="top:75px;height: 100%;"> |
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
$scope.currentlyScanning=false; | |
$scope.loadScanner=function(){ | |
// alert("loading barcode scanner"); | |
if ($scope.currentlyScanning===true){ | |
return; | |
} | |
else |
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
$urlRouterProvider.otherwise(function ($injector, $location) { | |
// console.log("loading main"); | |
if ($location.$$url === '/') { | |
// $urlRouterProvider.otherwise('/'); | |
// window.location = '/'; | |
} | |
else { | |
console.log("passing to webserver to handle it"); | |
// pass through to let the web server handle this request | |
window.location = $location.$$absUrl; |
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
{ | |
"name": "myapp", | |
"main": "app.js", | |
"version": "0.0.0", | |
"authors": [ | |
"jessie <jessie@apollo.com.ph>" | |
], | |
"license": "MIT", | |
"private": true, | |
"ignore": [ |
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
Users.findOne({"id":user_id}).exec(function(err, user) { | |
stripe.customers.create({ //this saves the user to the platform account | |
source: tokenID, | |
email: user.email, | |
description: "Example customer" | |
}, function (err, customer) { | |
user.stripe_cust=customer.id; | |
//this attempts to create a token associated to the connected account id | |
stripe.tokens.create( |
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
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash | |
nvm install 0.12.16 | |
nvm use 0.12.16 |
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
describe('detail-reveal component', function() { | |
beforeEach(function(){ | |
module('app.components', 'gettext'); | |
}); | |
describe('controller', function() { | |
var controller; | |
var $componentController; | |
var bindings = {title: 'Test', detail: 'test detail', icon: 'testIconClass', translateTitle: false, rowClass: 'test'}; |
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
// put this in your main.js | |
// add cordova.js only if serving the app through file:// | |
if (window.location.protocol === 'file:' || window.location.port === '3000') { | |
var cordovaScript = document.createElement('script') | |
cordovaScript.setAttribute('type', 'text/javascript') | |
cordovaScript.setAttribute('src', 'cordova.js') | |
document.body.appendChild(cordovaScript) | |
} |
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
- "export TRAVIS_COMMIT_MSG=\"$(git log --format=%B --no-merges -n 1)\"" | |
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip validator\]'; export TWBS_DO_VALIDATOR=$?; true | |
- echo "$TRAVIS_COMMIT_MSG" | grep '\[skip sauce\]'; export TWBS_DO_SAUCE=$?; true | |
install: | |
- time npm install -g grunt-cli | |
- ./test-infra/s3_cache.py download npm-modules | |
- if [ "$TWBS_TEST" = validate-html ] && [ $TWBS_DO_VALIDATOR -ne 0 ]; then ./test-infra/s3_cache.py download rubygems; fi |
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
//Create Object Definition | |
POST - localhost:3000/api/generic_object_definitions | |
{ | |
"name" : "LoadBalancer", | |
"description" : "LoadBalancer description", | |
"properties" : { | |
"attributes" : { | |
"address" : "string", | |
"last_restart" : "datetime" | |
}, |
OlderNewer