Skip to content

Instantly share code, notes, and snippets.

@jrmcdona
jrmcdona / gist:a46a22131a35032efa77212849635fd2
Last active November 11, 2016 15:10
Code snippet from my route set up and a ProfileScreen
/**
* @providesModule Router
* @flow
*/
import {
createRouter,
} from '@exponent/ex-navigation';
import LeaderboardScreen from 'LeaderboardScreen';
@jrmcdona
jrmcdona / gist:a1cd972839594b5fefa8ffa4ac134ba0
Created November 19, 2016 02:40
Unknown provider: $ionicFacebookAuthProvider <- $ionicFacebookAuth
Hi Folks, I have gone through the set up but I am unable to get the Facebook auth provider injected.
Here are some snippets.
I am not sure what else to try or what step I have missed:
Unknown provider: $ionicFacebookAuthProvider <- $ionicFacebookAuth
Any ideas, thanks?
In my app.js I inject ionic-cloud:
<body ng-app="pin">
<ion-nav-bar hide-nav-bar="true"></ion-nav-bar>
<ion-view view-title="Login" hide-nav-bar="true">
<ion-content ng-controller="LoginController">
<br/><br/><br/><br/>
<div class="row">
<div class="col"></div>
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component, AsyncStorage } from 'react';
import {
Platform,
View,
var cardDetails = {
"card[number]": '4242424242424242',
"card[exp_month]": '09',
"card[exp_year]": '2019',
"card[cvc]": '303'
};
var formBody = [];
for (var property in cardDetails) {
var encodedKey = encodeURIComponent(property);
[ignore]
; We fork some components by platform
.*/*[.]android.js
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/
; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*
exp://z2-z8j.jrmcdona.safetypin.exp.direct:80
Jordans-Mac-mini:Safetypin jordanmc$ exp logs
[exp] Making sure project is setup correctly...
[exp] Your project looks good!
[exp] Use Ctrl-C to stop streaming logs
exp-serve/Safetypin:744294bc-0 (out): [exp] <END> Building Haste Map (104ms)
exp-serve/Safetypin:744294bc-0 (out):
exp-serve/Safetypin:744294bc-0 (out): [exp] <END> Initializing Packager (273ms)
exp-serve/Safetypin:744294bc-0 (out):
import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router';
import { UniversalModule } from 'angular2-universal';
import { FormsModule } from '@angular/forms';
import { HttpModule, Http, BaseRequestOptions, Response, ResponseOptions, RequestMethod, XHRBackend, RequestOptions } from '@angular/http';
import { MockBackend, MockConnection } from '@angular/http/testing';
import { Store, StoreModule, combineReducers } from '@ngrx/store';
import { RouterStoreModule } from '@ngrx/router-store';
import { EffectsModule } from '@ngrx/effects';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
namespace SkypeChatBot.Dialogs
{
using Microsoft.Bot.Builder.Dialogs;
using System;
using System.Threading.Tasks;
using Microsoft.Bot.Connector;
[Serializable]
public class WelcomeDialog : IDialog<string>
{
namespace SkypeChatBot.Dialogs
{
using System;
using System.Threading.Tasks;
using System.Text;
using Microsoft.Bot.Builder.Dialogs;
using Microsoft.Bot.Connector;
#pragma warning disable 1998