A list of topics to study before implementing a large and scalable React + Redux application.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
$sizes: ( | |
-es: 10px, | |
-s: 20px, | |
-m: 30px, | |
-l: 40px, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.0.rc.1) | |
// ---- | |
div{ | |
$v: str-slice(padding, 0, 1); | |
content: "#{$v}"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Pré-carregamento de imagens | |
*/ | |
preloadImage = function(url, complete) { | |
if ( preloadImage.cache[url] ) { | |
complete.call(null); | |
return; | |
} | |
var img = new Image(); | |
img.onload = function() { |
##Tirando uma foto na hora do commit com Mercurial!
Instale o imagesnap
brew install imagesnap
No arquivo ~/.hgrc
Isso é util para garantir que a sua aplicação funcione sem problemas no futuro ou por exemplo se você tem projetos usando diferêntes versões do Sass ou Compass.
É necessário instalar o bundler (http://bundler.io/)
$ gem install bundler
This will enable Sass+Compass with LiveReload through Guard. (Guard screen cast)
You will also need a browser component to communicate with LiveReload. (browser extension, livereload.js)
If you prefer going through a GUI, that option is available. The following instructions is specific to Mac OS X and it works through the command line.
Note that this is not specific to Rails projects. This can work for any standalone front-end project.