This file contains hidden or 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
var appName = require('./package.json').name | |
|| require('../../package.json').name; | |
var ports = require('ports'); | |
var port = ports.getPort(appName + '-hoodie-plugin-social'); | |
module.exports = { | |
// 'server.pack.post': function (pack) { | |
// console.log('hook: server.pack.pre called'); | |
// }, |
This file contains hidden or 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
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
This file contains hidden or 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
var config = require('../lib/config'); | |
module.exports = function (hoodie) { | |
var dbname = config.dbname; | |
var oauth_cofig = hoodie.config.get('oauthio_config'); | |
var pluginDb = hoodie.database(dbname); | |
var oauthio = new OauthIo(hoodie, pluginDb); | |
var routes = { |
This file contains hidden or 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
var gulp = require('gulp'); | |
var gutil = require('gulp-util'); | |
var shell = require('gulp-shell'); | |
var download = require('gulp-download'); | |
var unzip = require('gulp-unzip'); | |
var clean = require('gulp-clean'); | |
var runSequence = require('gulp-run-sequence'); | |
var fs = require('fs'); | |
var path = require('path'); | |
var et = require('elementtree'); |
This file contains hidden or 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
/** | |
* Markup | |
* <md-icon icon-fill="red" icon="'/img/icons/test.svg'" style="width: 32px; height: 32px;"></md-icon> | |
*/ | |
angular.module('material.components.icon.extra', [ | |
'ngMaterial' | |
]) | |
.directive('iconFill', function () { |
This file contains hidden or 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
package org.apache.cordova.facebook; | |
import java.io.UnsupportedEncodingException; | |
import java.net.URLDecoder; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Date; | |
import java.util.HashSet; | |
import java.util.Iterator; | |
import java.util.List; |
This file contains hidden or 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
// DEVELOPMENT | |
module.exports = exports = { | |
"db": { | |
"connection1": { | |
"driver": "mongodb", | |
"url": "mongodb://localhost:27017/database_dev" | |
}, | |
"connection2": { | |
"driver": "redis", | |
"url": "redis://localhost" |
This file contains hidden or 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
# local env. | |
$ export COUCH_HOST=https://xxx.couchdb.com | |
$ export COUCH_PORT=xxx | |
$ export COUCH_USERNAME=xxx | |
$ export COUCH_PASSWORD=xxx | |
$ export COUCH_DATABASE=xxx | |
# cloud env. | |
$ heroku config:add COUCH_HOST=https://xxx.couchdb.com | |
$ heroku config:add COUCH_PORT=xxx |
This file contains hidden or 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
#!/bin/bash | |
function infinite_progress { | |
$* 2> /dev/null | |
} | |
function verify_dependencies { | |
local DEPS="" | |
local PACKAGES=$1 | |
for PACKAGE in $PACKAGES ; do |
This file contains hidden or 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
#!/bin/bash | |
EXITCODE="0" | |
SERVICES=( | |
"memcached &" | |
"mongod &" | |
"redis-server &" | |
"neo4j start" | |
"elasticsearch" |