Skip to content

Instantly share code, notes, and snippets.

View aaronksaunders's full-sized avatar

Aaron K Saunders aaronksaunders

View GitHub Profile
//
// react navigation example from expo.io boostrap showing simple stacknavigation
//
// @see https://facebook.github.io/react-native/docs/flatlist
// @see https://reactnavigation.org/docs/en/hello-react-navigation.html
// @see https://docs.expo.io/versions/latest/
//
import React from "react";
import {
StyleSheet,
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.0.3/vue.js"></script>
@aaronksaunders
aaronksaunders / store.spec.ts
Created December 28, 2017 15:29
mobx-state-tree tests
import { getSnapshot } from 'mobx-state-tree';
import { assert, expect } from 'chai';
//import { Users } from './../src/store';
import 'mocha'
import { Users, User, Boutique, ClothingItem } from './../src/store';
describe('Boutique', function () {
let b = null;
import { NavController } from 'ionic-angular/index';
import { Component, ViewChild } from "@angular/core";
@Component({
template:`
<ion-header>
<ion-navbar primary>
<ion-title>
Ionic 2
(function() {
'use strict';
angular
.module('YourApp')
.factory('googleAnalyticsService', googleAnalyticsService);
function googleAnalyticsService($window) {
var plugin;
var service = {};

I am initializing firebase

instance = firebase.initializeApp(config);

then checking for a user...

firebase.auth().currentUser

and there is no user there, but a few seconds later, my listener fires to let me know I have a user.

cordova.define("cordova-plugin-mapbox.Mapbox", function(require, exports, module) {
var exec = require("cordova/exec");
module.exports = {
show: function (options, successCallback, errorCallback) {
cordova.exec(successCallback, errorCallback, "Mapbox", "show", [options]);
},
hide: function (options, successCallback, errorCallback) {
cordova.exec(successCallback, errorCallback, "Mapbox", "hide", [options]);
<ul *ngFor="let item of projects | async">
<li class="text">
{{item.name}}
</li>
<p>
{{(item.metadata | async)?.moreData}}
</p>
<p>
{{(item.metadata | async)?.stockPrice}}
</p>
@aaronksaunders
aaronksaunders / index.ios.js
Created May 5, 2016 13:19
React-Native NavigationExperimental - Sample App
/**
* React Native 0.24.1
*
* Tested on iOS Only
*/
'use strict';
var React = require('react-native');
var {
AppRegistry,
@aaronksaunders
aaronksaunders / Angular2 Http Example.markdown
Last active November 15, 2017 16:14
Angular2 Http Example