Skip to content

Instantly share code, notes, and snippets.

[its id=900450985]
[its s="keikyutool pro"]
[its id=625334537 youtube=https://www.youtube.com/watch?v=RMuGnFl5_U4&index=1&list=UUF1vI0OCWSk2sdDVOLaLIRQ]
angular.module('starter.controllers')
.controller('TwitterCtrl', function ($scope, $cordovaOauth) {
console.log("twitter");
$cordovaOauth.twitter("uUYq3pK0DNqxCtoiuXvyXKWuV", "O6qxFeKYA1po2KaJUnCMCUJlJqxkYLSM8qxtUKOlJRqPy2An1c").then(function (result) {
console.log('success');
console.log(result);
}, function (error) {
console.log('error');
console.log(error);
});
isInAppBrowserInstalled: function(cordovaMetadata) {
var inAppBrowserNames = ["cordova-plugin-inappbrowser", "org.apache.cordova.inappbrowser"];
return inAppBrowserNames.some(function(name) {
return cordovaMetadata.hasOwnProperty(name);
});
},
isInAppBrowserInstalled: function(cordovaMetadata) {
return (typeof cordova != "undefined" && typeof cordova.InAppBrowser != "undefined");
},
server {
listen 80;
server_name example.com;
location / {
return 301 https://example.com$request_uri;
}
location ~ ^/.well-known/ {
root /var/www/ssl/example.com/;
}
}
@shumbo
shumbo / CSS Only TOKYO 2020 Olympic & Paralympic Games Logo.markdown
Created April 26, 2016 13:24
CSS Only TOKYO 2020 Olympic & Paralympic Games Logo
@shumbo
shumbo / ngrxintro.md
Created October 22, 2016 07:54 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

#Comprehensive Introduction to @ngrx/store By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

import {
Injectable,
ViewContainerRef,
Component,
ViewChild,
Directive,
AfterViewInit
} from '@angular/core';
import { Modal } from './modal.service';