Skip to content

Instantly share code, notes, and snippets.

Christian Hamburger Grøngaard christianhg

Block or report user

Report or block christianhg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@christianhg
christianhg / cloudSettings
Last active May 12, 2019
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2019-05-12T18:36:11.873Z","extensionVersion":"v3.2.9"}
View cachingPromises.js
/*
Service used to mimic a slow computation:
*/
class PersonService {
getPersons(caller) {
console.log(`> PersonService#getPersons() triggered by ${caller}`)
return new Promise(resolve =>
setTimeout(
() =>
resolve([
@christianhg
christianhg / 0_reuse_code.js
Created Oct 15, 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
You can’t perform that action at this time.