Skip to content

Instantly share code, notes, and snippets.

View molant's full-sized avatar

Antón Molleda molant

View GitHub Profile
@nolanlawson
nolanlawson / parens-and-perf-counterpost.md
Last active August 14, 2023 20:08
"Parens and Performance" – counterpost

"Parens and Performance" – counterpost

Kyle Simpson (@getify) wrote a very thoughtful post decrying optimize-js, which is a tool I wrote that exploits known optimizations in JavaScript engines to make JS bundles parse faster (especially minified bundles, due to what could be reasonably described as a bug in Uglify).

Kyle lays out a good case, but I tend to disagree with nearly all his points. So here's my rebuttal.

@barretts
barretts / RemarkablePlugin.js
Last active August 7, 2020 11:52
Remarkable JS Markdown parser plugin tutorial
/**
* Created by Barrett Sonntag barretts@github on 3/2/2015.
* http://www.sosuke.com/writing-custom-extensions-for-the-remarkable-javascript-markdown-parser
*
* A plugin tutorial for Remarkable https://github.com/jonschlinkert/remarkable
*/
var markdownParser = new Remarkable();
// open links in new windows
@andrealbinop
andrealbinop / setup-modernie-vagrant-boxes.md
Last active May 28, 2023 01:54
Setup modern.ie vagrant boxes

Setup modern.ie vagrant boxes

Since modern.ie released vagrant boxes, it' no longer necessary to manually import the ova file to virtualbox, as mentioned here.

However, the guys at modern.ie didn't configured the box to work with WinRM. This how-to addresses that, presenting steps to proper repackage these boxes, adding WinRM support. Additionally configures chocolatey package manager and puppet provisioner.

Pre-requisites

@ericelliott
ericelliott / essential-javascript-links.md
Last active April 22, 2024 10:15
Essential JavaScript Links
@BrandonLive
BrandonLive / BrandonJS-xhr
Last active January 4, 2016 15:39
BrandonJS.xhr - Provides a helper which mimicks the WinJS.xhr interface but uses WinRT's new HttpClient under the hood if available.
// This file is part of the Brandon Library for JavaScript (BrandonJS)
// Original author: Brandon Paddock, www.brandonlive.com
// Published under Creative Commons Attribution 4.0 International Public License
// http://creativecommons.org/licenses/by/4.0/legalcode
// BrandonJS.xhr
// Provides a helper which mimicks WinJS.xhr but using WinRT's new HttpClient if available.
// If WinRT is not available, it falls back to WinJS.xhr.
// This mimicks enough for common usage scenarios, but you may need to extend it for some cases.