This file has been truncated, but you can view the full file.
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
+ case "$(lsb_release -si)" in | |
++ lsb_release -si | |
+ export DOKKU_DISTRO=ubuntu | |
+ DOKKU_DISTRO=ubuntu | |
+ export DOKKU_IMAGE=gliderlabs/herokuish | |
+ DOKKU_IMAGE=gliderlabs/herokuish | |
+ export DOKKU_LIB_ROOT=/var/lib/dokku | |
+ DOKKU_LIB_ROOT=/var/lib/dokku | |
+ export PLUGIN_PATH=/var/lib/dokku/plugins | |
+ PLUGIN_PATH=/var/lib/dokku/plugins |
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
FROM ubuntu:14.04 | |
MAINTAINER Antoine Bellion <[email protected]> | |
# Update system and install libs | |
RUN apt-get update \ | |
&& apt-get install -y nodejs npm nodejs-legacy git | |
# Install http-server and bower | |
RUN npm install -g http-server bower |
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
(function() { | |
angular | |
.module('app') | |
.factory('my_visits', my_visits); | |
my_visits.$inject = ['$rootScope', '$q', 'my_pouchdb']; | |
function my_visits( $rootScope, $q, my_pouchdb) { | |
var self = angular.extend(this, my_pouchdb); | |
self.db = new PouchDB('public'); |
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
(function() { | |
angular.module('app', ['ionic', 'ngCordova', 'angularMoment', 'ng.group']); | |
loadData.$inject = ['$q', '$cordovaSplashscreen', 'my_criterions', 'my_visits', 'my_share', 'my_user']; | |
function loadData( $q, $cordovaSplashscreen, my_criterions, my_visits, my_share, my_user) { | |
var promises = [ | |
my_visits.createViews(), | |
my_visits.buildViewsIndexes(), |
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
function extendOwnPrototype(obj, prototype) { | |
var oldPrototype = Object.getPrototypeOf(obj); | |
var newPrototype = Object.create(oldPrototype); | |
var newObject = Object.create(newPrototype); | |
var length = Object.getOwnPropertyDescriptor(obj, 'length'); | |
for (var key in prototype) { | |
Object.defineProperty(newPrototype, key, { 'value': prototype[key] }); | |
} | |
for (var key in obj) { |
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
(function(){ | |
angular | |
.module('app') | |
.directive('img', img); | |
img.$inject = []; | |
function img() { | |
return ({ | |
restrict: 'E', |