Skip to content

Instantly share code, notes, and snippets.

@keego
keego / screenshot.js
Last active June 9, 2021 19:40 — forked from poissoj/splitImage.js
Uses `html2canvas` to take screenshots each element in an html NodeList, then uses `pdfMake` to concatenate them into a pdf and download it. (ES5 for AngularJS)
// Private fields
var PAGE_HEIGHT = 700;
var PAGE_WIDTH = 500;
// Private methods
function createNewReport (fileName) {
var content = [];
@CarbonFactory
CarbonFactory / gulp-wiredep-options.js
Last active July 6, 2017 13:30
How to make gulp-wirdep pick the minified ".min" files instead of the un-minified files - ASP.net C# template
/*
* Description: How to make gulp-wirdep pick the minified ".min" files instead of the un-minified files. The template I've used for ASP.net. You can change the regex in the 'block' option to whichever you want like html or jade
* Author: Dev Anand
* Author URI: https://github.com/CarbonFactory
* License: MIT
*/
/**
* wiredep options
*/