View PDF_MERGE.md

NOTE: GhostScript must be intalled

Mac Install instructions

brew install gs

Then run ghostscript listing all files to merge.

View lambda.js
exports.handler = function(event, context) {
var path = require('path');
var AWS = require('aws-sdk');
var esDomain = {
endpoint: 'search-zonaextrema-po7opa5ghqiby3jndavrzdyyqe.us-west-2.es.amazonaws.com',
region: 'us-west-2',
index: 'biohacking',
doctype: 'logs'
View es.js
var elasticsearch = require('elasticsearch');
var client = new elasticsearch.Client({
host: 'localhost:9200',
log: 'trace'
});
//create index
client.indices.create({ index: "biohacking"}, function(){ console.log(arguments); })
//insert documents
View app.js
Biohacking.EventListener = function(){
this._listeners = {};
this.register = function( events ) {
Object.keys(events).forEach(function(event) {
this._listeners[event] = events[event];
}, this);
};
this.fireEvent = function(event, options) {
View List.html
<div class="list">
<div class="row">
<div class="kind-info">
<div class="kind"><a>WORKOUT</a></div>
<div class="date">28/09/2015 06:00</div>
</div>
<div class="tags">
View TrackFormBuilder.js
Biohacking.TrackFormBuilder = function() {
this.layout = {
sections:[
{
hidden: true,
fields: [{
"class": "display",
message: 'Atividade inserida com sucesso!',