Skip to content

Instantly share code, notes, and snippets.

View BorisTB's full-sized avatar
🦠
vibin'

Boris BorisTB

🦠
vibin'
  • Prague, Czech Republic
View GitHub Profile
@peteroupc
peteroupc / LineReader.js
Last active August 17, 2024 10:43
JavaScript class for reading files line by line in HTML5 apps
/*
Written by Peter O.
Any copyright to this work is released to the Public Domain.
In case this is not possible, this work is also
licensed under Creative Commons Zero (CC0):
https://creativecommons.org/publicdomain/zero/1.0/
*/
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active June 19, 2025 10:53
A badass list of frontend development resources I collected over time.
@mattkahl
mattkahl / twig.async.js
Last active March 16, 2017 08:23
An asynchronous implementation of twigjs that returns a Promise on instantiation if the template is asynchronous. Works just like twig(), but when instantiated, twigAsync returns a Promise. The twig template is passed as the only parameter when resolving the Deferred object.
/**
* twig.async.js
*
* An asynchronous implementation of twigjs that returns a Promise on instantiation if the template is asynchronous.
* Works just like twig(), but when instantiated, twigAsync returns a Promise. The twig template
* is passed as the only parameter when resolving the Deferred object.
*
* e.g.
* tpl = twigAsync({href:'/templates/profile/profile-welcomeNewDesign.twig'});
* $.when(tpl).done(function(twigTemplate){