Skip to content

Instantly share code, notes, and snippets.

View FennNaten's full-sized avatar

Damien Lebreuilly FennNaten

View GitHub Profile
@FennNaten
FennNaten / image-queue.js
Last active July 10, 2017 01:09 — forked from sararob/image-queue.js
updating https://gist.github.com/sararob/275b252d1eda3a5baa27d6464d2f2198 to add example of reducing memory usage by using file streams
'use strict';
/**
* this is a fork of https://gist.github.com/sararob/275b252d1eda3a5baa27d6464d2f2198
* with some code added to show how reading from and writing to the big source and destination files
* can be done with streams to reduce memory pressure
* code added is there as an example to illustrate the principles involved and is not tested, so it may contains bugs
*/
// Dependencies
@FennNaten
FennNaten / vimeo_jsonp.html
Created January 18, 2014 21:30
This code is an example made to illustrate a blog post about JSONP. It shouldn't be used in any production system. The file is an html page with some javascript. Open in a browser, it displays some fields and a button. Filling the fields with a Vimeo video url, a width and a height performs a JSONP call to Vimeo oEmbed API then displays the vide…
<!-- This code is an example made to illustrate a blog post about JSONP. It shouldn't be used in any production system.
Copyright (C) 2014 Damien Lebreuilly
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES O