Skip to content

Instantly share code, notes, and snippets.

@thejae
thejae / 0_reuse_code.js
Created July 18, 2017 03:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@thejae
thejae / gist:b6df1b08af8fba9cec46b6210da3e954
Last active November 17, 2016 03:38 — forked from MrRoyce/gist:097edc0de2fe001288be2e8633f4b22a
AWS CodeDeploy Lamda formatter for Slack messages - node.js
var services = '/services/...'; // Update this with your Slack service...
var channel = "#aws-deployments"; // And this with the Slack channel
var https = require('https');
var util = require('util');
var formatFields = function(string) {
var
message = JSON.parse(string),
fields = [],