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
| constructor( | |
| platform: Platform, | |
| public af: AngularFire, | |
| public loadingCtrl: LoadingController, | |
| public authData: AuthData, | |
| public storage: Storage, | |
| public menuCtrl: MenuController, | |
| ) { | |
| platform.ready().then(() => { |
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
| <!-- Hello.vue --> | |
| <template> | |
| <div class="hello"> | |
| <h1>{{ msg }}</h1> | |
| <h2>Essential Links</h2> | |
| <ul> | |
| <li><a href="https://vuejs.org" target="_blank">Core Docs</a></li> | |
| <li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li> | |
| <li><a href="https://gitter.im/vuejs/vue" target="_blank">Gitter Chat</a></li> |
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
| /* | |
| * JTS_MICROMETER | |
| * Last revised 21 December 2016 | |
| * | |
| * This sketch reads the input from the Mitutoyo digital | |
| * micrometer and formats it appropriately for later use. | |
| * | |
| * The output of this sketch is an array of integers with | |
| * the name "reading" - it contains 13 hexadecimal numbers | |
| * which represent the 52-bit output of the micrometer. |
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
| "use strict"; | |
| var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | |
| var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | |
| if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | |
| else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | |
| return c > 3 && r && Object.defineProperty(target, key, r), r; | |
| }; | |
| var plugin_1 = require('./plugin'); | |
| var Observable_1 = require('rxjs/Observable'); | |
| /** |
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
| /* | |
| * TESTING.js | |
| * A test suite for Cordova APIs that are executed locally. | |
| * last revised August 23, 2016 | |
| */ | |
| /******************************************************************************/ | |
| // BEGIN GEOLOCATION TESTING: Working successfully | |
| /******************************************************************************/ |
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
| # coding: utf-8 | |
| def find_position(i, array): | |
| input_added = False | |
| for index, value in enumerate(array): | |
| if i < value: | |
| array.insert(index, i) | |
| input_added = True | |
| return 1 | |
| if input_added == 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
| function loadPkmn(start, end) { | |
| for (var i = start; i <= end; i++) { | |
| $http.get('https://pokeapi.co/api/v2/pokemon/' + i).then(function(res) { | |
| $scope.$apply(function() { | |
| $scope.kantoPkmn.push(res.data); | |
| }); | |
| }) | |
| } | |
| } |
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
| controller: function($scope, $state) { | |
| $scope.fetchUser = function() { | |
| $scope.user = firebase.auth().currentUser; | |
| console.log("fetchUser() returns " + $scope.user); | |
| }; | |
| $scope.isAuthenticated = function() { | |
| if (firebase.auth().currentUser) { | |
| return true; | |
| } | |
| return 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
| class ExpressionAST { | |
| public: | |
| virtual ~ExpressionAST() {} | |
| }; | |
| // Function call | |
| class FunctionCallAST : public ExpressionAST { | |
| std::string m_callee; | |
| std::vector<std::unique_ptr<ExpressionAST> > m_arguments; | |
| public: |
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
| Verifying that +sjroth is my blockchain ID. https://onename.com/sjroth |