Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert Djurasaj robertd

  • Highlands Ranch, Colorado
View GitHub Profile
View cdk build error
@aws-cdk/assert: > cdk-build
aws-cdk: PASS test/api/bootstrap.test.ts
aws-cdk: ● Console
aws-cdk: console.error lib/logging.js:705
aws-cdk: mockStack: creating CloudFormation changeset...
aws-cdk: console.error lib/logging.js:705
aws-cdk: mockStack: creating CloudFormation changeset...
aws-cdk: console.error lib/logging.js:705
aws-cdk: mockStack: creating CloudFormation changeset...
aws-cdk: console.error lib/logging.js:705
@robertd
robertd / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@robertd
robertd / example.js
Last active Aug 29, 2015
Notifier powered by ToastrJS
View example.js
define([
"notifier"
"jquery"
], function (notifier, $) {
/* ACME Demo */
var toast = notifier.instance("info", "Fetching..."); // toastr insance that can be manipulated later
$.ajax("/api/acme/repositories", {
dataType: "json"
}).then(function (data) {
@robertd
robertd / time.js
Last active Dec 22, 2015
Milliseconds to hour/min count
View time.js
function time(ms) {
var hours = Math.floor(ms/3600000),
minutes = Math.floor(ms/60000)%60,
time = (hours > 0 ? (hours +" hr, ") : "") + minutes + " min";
return time;
}