Skip to content

Instantly share code, notes, and snippets.

View albizures's full-sized avatar
🤷‍♂️

Jose Albizures albizures

🤷‍♂️
View GitHub Profile
@albizures
albizures / .babelrc
Last active November 23, 2016 19:04
sails config
{
"presets": ["es2015"],
"plugins": [
"transform-es2015-block-scoping",
"transform-es2015-destructuring",
"transform-es2015-computed-properties",
"transform-es2015-shorthand-properties"
]
}
/**
* Created by albizures on 8/10/15.
*/
function DragBar(type, area) {
this.type = type;
this.area = area;
this.id = Date.now();
this.parent = area.parent;
/**
* Created by albizures on 8/10/15.
*/
function AreaCrop(page, parent, scale, x, y, w, h, minW, minH, maxW, maxH) {
this.id = Date.now();
var real = page[0].getBoundingClientRect();
var visibleArea = {};
this.el = document.createElement('div');
function foo(){
console.log(b); // undefined
console.log(c); // undefined
console.log(d); // undefined
console.log(e); // b is not defined
var b = 1;
if(true){
var c = 0;
}
if(false){
@albizures
albizures / const.js
Last active December 2, 2015 21:48
const
(function (){
'use strict';
const foo = "foo";
foo = 1;
console.log(foo);
})();