Skip to content

Instantly share code, notes, and snippets.

@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active May 24, 2024 14:17
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux
@feeela
feeela / recursivePromiseWithDelay.js
Last active December 4, 2023 16:20
Recursive JS promises with delay
#!/usr/bin/nodejs
var Promise = require( 'promise' );
/**
*
* @param {Array} list
* @param {int} delay
*/
function recursivePromiseWithDelay( list, delay ) {
@cjoudrey
cjoudrey / twitter.js
Created November 5, 2011 16:37
Lazy-rendering in PhantomJS
// This example shows how to render pages that perform AJAX calls
// upon page load.
//
// Instead of waiting a fixed amount of time before doing the render,
// we are keeping track of every resource that is loaded.
//
// Once all resources are loaded, we wait a small amount of time
// (resourceWait) in case these resources load other resources.
//
// The page is rendered after a maximum amount of time (maxRenderTime)