Skip to content

Instantly share code, notes, and snippets.

View rubenspgcavalcante's full-sized avatar
👨‍🚀
Ground control to Major Tom

Rubens Pinheiro rubenspgcavalcante

👨‍🚀
Ground control to Major Tom
View GitHub Profile
import(
/* webpackChunkName: "myAwesomeLazyModule" */
/* webpackPreload: true */
"./lazy-one"
);
import $script from "scriptjs";
export default function importAsync(url) {
return new Promise((resolve, reject) => {
$script(url, resolve); //just a simple, version. You should tread the reject case
});
});

Olá, presidenta Rousseff... eu lhe avisei

Carta impressa: escrita por Maddog

Jon "maddog" Hall

Querida Presidenta Rousseff,

Eu entendo que a senhora esteja irritada com meu país, os Estados Unidos da América, porque uma de

/**
* The card view
* @extends {maria.ElementView}
*/
SL.MVC.CardView = {};
SL.MVC.CardTemplate = SL.Utils.Template.load("card");
maria.ElementView.subclass(SL.MVC, "CardView", {
uiActions: {
'dragStop .card': 'onDragStop'
@rubenspgcavalcante
rubenspgcavalcante / CardController.js
Created April 19, 2014 02:06
The card view declaration
/**
* The card controller
* @extends {maria.Controller}
*/
SL.MVC.CardController = {};
maria.Controller.subclass(SL.MVC, "CardController", {
properties: {
onDrag: function(){
/*