Skip to content

Instantly share code, notes, and snippets.

View UltCombo's full-sized avatar

Fabricio Matte UltCombo

View GitHub Profile

Babel 6

Babel is (or at least was supposed to become) the definitive tool for parsing, transforming and generating JavaScript code. That is, it should serve as the base for all modern JavaScript tooling, including linting, syntax highlighting and transpiling. It would also serve as a testing ground for ECMAScript proposals, allowing the community to try out and provide feedback on new proposals before they are even implemented on engines, thus rocketing the JavaScript language's evolution.

The latest major release of Babel (v6) brought huge changes, making Babel much more modular—all transpiling logic has been split into plugins that you can disable or replace, and the plugin API had quite a few changes and improvements as well.

Now, let's get to the point. Babel 6 was published about a month and a half ago, and well, it has been broken since the publication. Okay, not really. Broken releases happen to everyone, [shit happens](https://en.wikipedia

@UltCombo
UltCombo / index.js
Created December 29, 2014 22:36
glob-stream vs globby negative globs benchmark
'use strict';
var async = require('async');
var gs = require('glob-stream');
var globby = require('globby');
var globs = ['**/**.js', '!node_modules/**'];
function gsBenchmark(cb) {
console.time('gs');
@UltCombo
UltCombo / links
Last active August 29, 2015 14:07
SASPI 5 - Ninjas do Front - Links
@UltCombo
UltCombo / SassMeister-input.scss
Created September 30, 2014 20:02
Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
$helpers-name: (
fll: (
float: left
),
@UltCombo
UltCombo / resources.md
Last active September 28, 2020 19:17
JavaScript resources
var $el = $('div');
(function loop() {
$el.animate({
'border-top-left-radius': 100,
'border-top-right-radius': 100,
'border-bottom-left-radius': 100,
'border-bottom-right-radius': 100
}, 500, function() {
$el.animate({
borderTopLeftRadius: 0,
var o = { 'foo-bar!@ #': 1 };
console.log( o['foo-bar!@ #'] ); //1
@UltCombo
UltCombo / gist:6445413
Last active December 22, 2015 08:29
syntax error due to invalid character in identifier name
element.style.border-radius = //[...]
document.getElementById('foo').style.borderRadius = '10px';
$('#foo').css('border-radius', 10);
$('#foo').css('borderRadius', 10);