I no longer mantain this list. There are lots of other very comprehensive JavaScript link lists out there. Please see those, instead (Google "awesome JavaScript" for a start).
Num determinado dia de um determinado mês, um ser malévolo de outra galáxia, utilizando-se de uma arma especial, apagou a memória de todos os indivíduos do planeta Terra. Ainda, todas as pessoas tiveram suas roupas modificadas e passaram a utilizar apenas um chinelo, uma calça e uma camisa branca. Feito isso, esse ser malévolo disse a todos:
A partir de agora, ninguém sabe quem é, o que faz, nem o que tem. Ninguém é opressor ou oprimido. Ninguém é maioria ou minoria. Durante o período de um ano, todos os indivíduos do planeta precisarão definir juntos, as regras que irão reger a sociedade. Ao final desse ano, irei reverter a amnésia coletiva e todos passarão a estar sujeitos às regras que definiram.
Lembrem-se: Vocês não sabem se fazem parte da maioria ou da minoria, se são opressores ou oprimidos, se tem muito ou se não tem nada. Ao definir as regras, tomem o cuidado de ser justos, pois a injustiça poderá recair sobre você.
Sabendo que qualquer um tem exatamente a mesma proba
/* | |
* Enhances 'require' from RequireJS with Promises API while preserving its original semantics. | |
*/ | |
(function() { | |
if (!Promise || !require) { | |
return; | |
} |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
I wanted to figure out the fastest way to load non-critical CSS so that the impact on initial page drawing is minimal.
TL;DR: Here's the solution I ended up with: https://github.com/filamentgroup/loadCSS/
For async JavaScript file requests, we have the async
attribute to make this easy, but CSS file requests have no similar standard mechanism (at least, none that will still apply the CSS after loading - here are some async CSS loading conditions that do apply when CSS is inapplicable to media: https://gist.github.com/igrigorik/2935269#file-notes-md ).
Seems there are a couple ways to load and apply a CSS file in a non-blocking manner:
This is a Lua port of of jbroadway's PHP project of the same name.
A very basic pattern-based Markdown parser. Supports the
following elements (and can be extended via slimdown.addRule()
):
- Headers
- Links
- Bold
#!/bin/bash | |
#Start time | |
StTime="00:02:31" | |
#Length of video | |
LenV="00:00:05" | |
#Quantity images per sec | |
R="4" | |
#Width of images | |
WIDTH="600" |
//To run Q.js examples: | |
// 1. Open a new browser tab in Chrome and turn on developer toolbar (or open any http site). | |
// 2. Copy/Paste this gist in the console and hit enter to run the snippets. | |
// Based on the inspiration from samples @ https://github.com/kriskowal/q | |
//////////////////////////////////////////////////////////////////// | |
//////////////////////////////////////////////////////////////////// |