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
console.log('Loading lambda function'); | |
exports.handler = function(event, context) { | |
console.log('value1 =', event.key1); | |
context.succeed(event.key1); | |
}; |
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
body { | |
font-family: 'Nunito', HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
font-weight: 300; | |
margin: 0; | |
padding: 0; | |
background-color: #333; | |
color: #eee; | |
} | |
#logo { |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Meridium blogginlägg</title> | |
<style> | |
body { | |
font-family: 'Nunito', HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
font-weight: 300; |
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
{ | |
"results": [ | |
{ | |
"person_id": 1, | |
"firstName": "Byggare", | |
"lastName": "Bob", | |
"fullName": "Byggare Bob" | |
} | |
] | |
} |
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
[ | |
{ | |
"person_id": 1, | |
"firstName": "Byggare", | |
"lastName": "Bob" | |
}, | |
{ | |
"person_id": 2, | |
"firstName": "Douglas", | |
"lastName": "Crockford" |
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'); | |
var app = express(); | |
var _ = require('lodash'); | |
var bodyParser = require('body-parser'); | |
var requester = require('request'); | |
var data = require('./data.json'); | |
var host = '127.0.0.1'; | |
var port = 1337; | |
var apiUrl = 'https://legacy.boring.crm'; |
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
{ | |
"name": "service-mock", | |
"version": "0.0.1", | |
"description": "Mock service", | |
"main": "service.js", | |
"dependencies": { | |
"body-parser": "^1.9.2", | |
"express": "^4.10.1", | |
"lodash": "^2.4.1", | |
"request": "^2.47.0" |
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 gulpfile = require('./gulpfile.js'), | |
gulp = require('gulp'), | |
prettyTime = require('pretty-hrtime'), | |
tasks = ['all']; | |
if(process.argv.length > 2) { | |
tasks = [process.argv[2]]; | |
} | |
gulp.on('task_start', function(e) { |
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'), | |
uglify = require('gulp-uglify'), | |
browserify = require('gulp-browserify'), | |
src = { | |
scripts: 'path-to-script-source/app.js', | |
scriptsWatch: ['path-to-script-source/app.js', 'path-to-script-source/scripts/**'] | |
}, | |
dest = { | |
scripts: 'path-to-script-dest' | |
}; |