View invoke-lambdas-locally.js
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
const aws = require('aws-sdk') | |
const express = require('express') | |
const bodyParser = require('body-parser') | |
const config = require('./lib/config') | |
// API Gateway | |
const apiLambdas = [ | |
{name: 'GetListOfUsers', endpoint: '/users', handler: require('./users-lambda').handler}, | |
] |
View bookmarklet.js
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 slots = googletag.pubads().getSlots(); | |
var slotsOutput = {}; | |
slots.forEach(function(slot) { | |
slotsOutput[slot.getSlotElementId()] = getSlotTargeting(slot); | |
}); | |
function getSlotTargeting(slot) { | |
var url = slot.getContentUrl(); | |
var parser = document.createElement('a'); |