Skip to content

Instantly share code, notes, and snippets.

constructor(
platform: Platform,
public af: AngularFire,
public loadingCtrl: LoadingController,
public authData: AuthData,
public storage: Storage,
public menuCtrl: MenuController,
) {
platform.ready().then(() => {
@sejr
sejr / Hello.vue
Last active January 6, 2017 21:18
<!-- 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>
/*
* 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.
"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');
/**
/*
* TESTING.js
* A test suite for Cordova APIs that are executed locally.
* last revised August 23, 2016
*/
/******************************************************************************/
// BEGIN GEOLOCATION TESTING: Working successfully
/******************************************************************************/
# 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:
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);
});
})
}
}
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;
class ExpressionAST {
public:
virtual ~ExpressionAST() {}
};
// Function call
class FunctionCallAST : public ExpressionAST {
std::string m_callee;
std::vector<std::unique_ptr<ExpressionAST> > m_arguments;
public:
Verifying that +sjroth is my blockchain ID. https://onename.com/sjroth