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": "my-app", | |
"version": "1.0.0", | |
"description": "My test app", | |
"main": "src/js/index.js", | |
"scripts": { | |
"jshint:dist": "jshint src/js/*.js", | |
"jshint": "npm run jshint:dist", | |
"jscs": "jscs src/*.js", | |
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.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
module.exports.ok = function (body, headers) { | |
return { | |
statusCode: 200, | |
body: JSON.stringify(body), | |
headers: headers || {} | |
} | |
} | |
module.exports.notFound = function (message) { | |
return { |
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 dynamoDb = new AWS.DynamoDB.DocumentClient(); | |
module.exports.scan = function (table) { | |
return new Promise((resolve, reject) => { | |
const params = { | |
TableName: table | |
} |
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
'use strict'; | |
const _ = require('underscore'); // 1.7.0 | |
const AWS = require('aws-sdk'); // 2.2.46 | |
const delay = 3000; | |
let deletedIamUsers = 0; | |
let creds = { | |
accessKeyId: '<insert your accessKeyId>', |
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
rem see https://github.com/coreybutler/nvm-windows/issues/300 | |
@echo off | |
SETLOCAL EnableDelayedExpansion | |
if [%1] == [] ( | |
echo Pass in the version you would like to install, or "latest" to install the latest npm version. | |
) else ( | |
set wanted_version=%1 |
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> | |
<meta charset="UTF-8"> | |
<title>Insert title here</title> | |
<link rel="stylesheet" href="css/main.css"/> | |
</head> | |
<% | |
let date = new Date(); | |
%> |
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 ejs = require("ejs"); | |
var app = express(); | |
app.set("views", __dirname + "/views"); | |
app.set("view engine", "ejs"); | |
app.engine("ejs", ejs.renderFile); | |
app.use(express.static("public")); |
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 ejs = require("ejs"); | |
var app = express(); | |
app.set("views", __dirname + "/views"); | |
app.set("view engine", "ejs"); | |
app.engine("html", ejs.renderFile); | |
app.use(express.static("public")); |
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
module.exports = function(app){ | |
let html = "<!DOCTYPE html>" | |
+ "<html>" | |
+ "<head>" | |
+ "<meta charset='UTF-8'>" | |
+ "<title>Insert title here</title>" | |
+ "<link rel='stylesheet' href='css/aaa.css'/>" | |
+ "</head>" | |
+ "<body>" | |
+ " <h1 class='c1'>ROOT.html</h1>" |
NewerOlder