This file contains 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
node { | |
stage("Checkout SCM") { | |
checkout scm: [ | |
$class: 'GitSCM', | |
userRemoteConfigs: [[url: "https://github.com/remkohdev/fdic-api.git", credentialsId: "github.api.token"]], | |
branches: [[name: '*/master']] | |
], | |
changelog: false, | |
poll: false; |
This file contains 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
let util = require('util'); | |
let DataSource = require ('loopback-datasource-juggler').DataSource, | |
Couchdb = require ('loopback-connector-couchdb2'); | |
let _ = require('lodash'); | |
module.exports = function(Banks) { | |
var app = require('../../server/server'); | |
var ds = app.datasources.couchdb; |
This file contains 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
{ | |
"INSTITUTIONS": | |
[ | |
{ | |
"STNAME": "Ohio", | |
"ACTIVE": 1, | |
"ADDRESS": "1111 Polaris Parkway", | |
"ASSET": "2,167,700,000", | |
"CITY": "Columbus", | |
"COUNTY": "Delaware", |
This file contains 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
swagger: "2.0" | |
info: | |
description: "FDIC Insitutions Data API." | |
version: "1.0.0" | |
title: "FDIC Insitutions Data API" | |
contact: | |
name: "remkohdev" | |
email: "remkohdev@gmail.com" | |
license: | |
name: "Apache 2.0" |
This file contains 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('ChatDetailCtrl', function($scope, $stateParams, $ionicPopup, Chats, $interval) { | |
$scope.chat = Chats.get($stateParams.chatId); | |
$scope.messages = []; | |
$scope.message = {}; | |
var wsurl = "ws://remkohdev-nodered.mybluemix.net"; | |
var ws = new WebSocket(wsurl); | |
// WebSocket EventListeners | |
ws.onopen = function(evt) { |
This file contains 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
<!-- | |
This template loads for the 'tab.friend-detail' state (app.js) | |
'friend' is a $scope variable created in the FriendsCtrl controller (controllers.js) | |
The FriendsCtrl pulls data from the Friends service (service.js) | |
The Friends service returns an array of friend data | |
--> | |
<ion-view view-title="{{chat.name}}" cache-view="false"> | |
<ion-content class="padding" overflow-scroll="true"> | |
<ion-refresher pulling-text="Pull to refresh..." on-refresh="doRefresh()"></ion-refresher> |
This file contains 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
<ul id="messages"></ul> | |
<input id="message"/><br> | |
<button id="openbutton">Connect</button> | |
<button id="sendbutton">Send</button> | |
<button id="closebutton">Close</button> | |
<script src="https://code.jquery.com/jquery-1.11.1.js"></script> | |
<script> | |
$(function () { | |
This file contains 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
angular.module('app') | |
.controller('SignUpController', ['$scope', '$state', 'AuthService', function($scope, $state, AuthService) { | |
$scope.register = function() { | |
AuthService.register($scope.member.email, $scope.member.password) | |
// handle promise | |
// onsuccess | |
.then(function() { | |
$state.go('sign-up-success'); |
This file contains 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
angular.module('app') | |
.factory('AuthService', ['Member', '$q', '$rootScope', function(Member, $q, $rootScope) { | |
function register(email, password) { | |
return Member | |
.create({ | |
email: email, | |
password: password | |
}) |
This file contains 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
"acls": [ | |
{ | |
"accessType": "*", | |
"principalType": "ROLE", | |
"principalId": "$everyone", | |
"permission": "DENY" | |
}, | |
{ | |
"accessType": "READ", | |
"principalType": "ROLE", |
NewerOlder