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
var express = require('express'), | |
app = express(), | |
port = process.argv[2] || process.env.PORT || 9000, | |
webroot = process.argv[3] || process.env.WEBROOT || './demo'; | |
app | |
.use(express.bodyParser()) | |
.use(express.cookieParser()) | |
.use(app.router) | |
.use(express.static(__dirname + '/' + webroot)) | |
.listen(port, function () { console.log('Demo is running on: http://localhost:' + port); }); |
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
alias ls="ls -G" | |
# alias mysql=/usr/local/mysql/bin/mysql | |
# alias mysqladmin=/usr/local/mysql/bin/mysqladmin | |
export PATH=$PATH:$HOME/bin | |
# export PATH=$PATH:/usr/local/mongodb/bin | |
# export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH | |
### Added by the Heroku Toolbelt |
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
#!/bin/bash | |
EXITCODE="0" | |
SERVICES=( | |
"memcached &" | |
"mongod &" | |
"redis-server &" | |
"neo4j start" | |
"elasticsearch" |
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
#!/bin/bash | |
function infinite_progress { | |
$* 2> /dev/null | |
} | |
function verify_dependencies { | |
local DEPS="" | |
local PACKAGES=$1 | |
for PACKAGE in $PACKAGES ; do |
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
# 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 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 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 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 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 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 = { |