Web

Generators

published on
Send messages to generators function* createHello() { const name = yield console.log('Hello ' + name) } const hello = createHello() hello.next(); hello.next('Riderman'); Throw errors inside of generators function* createHello() { try { const name = yield console.log('Hello ' + name) } catch (error) { console.error(error); // OPS } } const hello = createHello() hello.next(); hello.throw(new Error('Ops')); Delegate generators interation control function* create3to5Counter() { yield 3; yield 4; } function* createCounter() { yield 1; yield 2; yield* create3to5Counter(); // another generator yield 6; } for (let i of createCounter()) { console. Read More...

React Basics

published on
https://egghead.io/lessons/react-create-html-elements-with-react-s-createelement-api React.createElement('div', { className: 'container' }, 'childresn')

Itcss

published on
Definition settings: Font, colors definitions. (NOT CSS OUTPUT)```` tools: Globally used mixins and functions. (NOT CSS OUTPUT) generic: Reset and/or normalize styles, box-sizing definition. elements: Styling for bare HTML elements (like H1, A, etc.). objects: Class-based selectors which define undecorated design patterns. components: UI Components, often composed of Objects and Components. utilities: Utilities and helper classes with ability to override anything. Ordered in the resulting CSS: from generic styles to explicit ones, from low-specificity selectors to more specific ones. Read More...

Devtools

published on
on http://discover-devtools.codeschool.com/ CSS Modifications Botão direito para ver as modificações locais Console console.log pode ser usado para logar objetos console.assert gera um erro se a expressão for false console.warn como alerta inspect function irá selecionar o objeto na aba elements $0 atual, $1 anterior .. e assim por diante console.profile([label]) e console.profileEnd() para adicionar um profile na aba Profile console.timeStamp([label]) adiciona evento na aba Timeline Links úteis: console-api e console Read More...

Console

published on
Pretty table With console.table([{}, {}]) you can …

Front in Bh 2014

published on
Testes UI Joao Lucas (@jlucasps) e Rafael Guedes (@rafaelmenta) QUnit: feito pelo pessoal do jQuery Buster.js: Mais completo, flexivel, modular do que todos. Porém beta Ferramentas Utilitárias Karma: Chai: Comunidade muito bom, com vários plugins TestSwarm da Mozila: Roda teste no cliente real Blanket.js Helpers Spies: Funções que espia funções Stubs: Comportamento pré estabelecido \ Engana o fluxo do código Mocks: ?? Fakes: Node Yamil @elbuo8 - Cada submodule do note sem seu proprio package. Read More...