Skip to content

Instantly share code, notes, and snippets.

View remkohdev's full-sized avatar

remkohdev remkohdev

View GitHub Profile
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;
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;
{
"INSTITUTIONS":
[
{
"STNAME": "Ohio",
"ACTIVE": 1,
"ADDRESS": "1111 Polaris Parkway",
"ASSET": "2,167,700,000",
"CITY": "Columbus",
"COUNTY": "Delaware",
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"
.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 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>
<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 () {
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');
angular.module('app')
.factory('AuthService', ['Member', '$q', '$rootScope', function(Member, $q, $rootScope) {
function register(email, password) {
return Member
.create({
email: email,
password: password
})
"acls": [
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "READ",
"principalType": "ROLE",