Skip to content

Instantly share code, notes, and snippets.

View robertd's full-sized avatar

Robert Djurasaj robertd

  • Highlands Ranch, Colorado
View GitHub Profile
@robertd
robertd / example.js
Last active August 29, 2015 14:15
Notifier powered by ToastrJS
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 / 0_reuse_code.js
Last active August 29, 2015 14:16
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
@robertd
robertd / time.js
Last active December 22, 2015 21:29
Milliseconds to hour/min count
function time(ms) {
var hours = Math.floor(ms/3600000),
minutes = Math.floor(ms/60000)%60,
time = (hours > 0 ? (hours +" hr, ") : "") + minutes + " min";
return time;
}
@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
a1
c1
c3
c4
c5
c5a
c5ad
c5d
c5n
c6g