This is my proposal for a simpler implementation of the Flux pattern (well, like Redux, it is not exactly Flux)
(The name has nothing to do with ego, it's a joke from @Uhsac :))
import React, {Component, PropTypes} from "react" | |
import placesLoader from "./placesLoader" | |
import placesShape from "./placesShape" | |
import styles from "./GoogleMap.css" | |
import iconMarker from "./iconMarker.png" | |
import iconTrash from "./iconTrash.png" | |
const {arrayOf, func, number, shape, string} = PropTypes |
This is my proposal for a simpler implementation of the Flux pattern (well, like Redux, it is not exactly Flux)
(The name has nothing to do with ego, it's a joke from @Uhsac :))
/** | |
* Using Operator Mono in Atom | |
* | |
* 1. Open up Atom Preferences. | |
* 2. Click the “Open Config Folder” button. | |
* 3. In the new window’s tree view on the left you should see a file called “styles.less”. Open that up. | |
* 4. Copy and paste the CSS below into that file. As long as you have Operator Mono SSm installed you should be golden! | |
* 5. Tweak away. | |
* | |
* Theme from the screenshot (http://cdn.typography.com/assets/images/blog/operator_ide2.png): |
No later than a few days ago, at Octave & Octave, I had to make a grid generator in Sass which is fully responsive. Rather than using a fixed grid as I usually do, I decided to create a fluid grid using percentages (calculated with the famous target / context * 100 = result).
Indeed, after finishing the book Response Web Design from A Book Apart where the author proposes to use this type of grid, I must say I was convinced by this flexibility. And I think that I am not alone. Just look at the number of frameworks using this kind of grid (Foundation, Tiny Fluid Grid, Fluid960gs…)
After some hours of development to obtain optimal results based on the guidelines of my agency, I was surprised to notice a very annoying display bug on my Safari.
{ | |
"AF": "93", | |
"AL": "355", | |
"DZ": "213", | |
"AD": "376", | |
"AO": "244", | |
"AQ": "672", | |
"AR": "54", | |
"AM": "374", | |
"AW": "297", |
For development, you will only need Node.js installed on your environement. And please use the appropriate Editorconfig plugin for your Editor (not mandatory).
a { font-size: calc(calc(calc(1rem * 0.75) * 1.5) - 1px); } | |
a { color: color(rebeccapurple a(-10%)); } | |
a { color: hwb(0, 10%, 20%); } | |
a { color: color(color(red a(+10%)));} | |
a { color: color(color(rebeccapurple a(-10%)) a(-10%)); } |
These rules are adopted from the AngularJS commit conventions.
<script type="text/javascript"> | |
(function () { | |
"use strict"; | |
// once cached, the css file is stored on the client forever unless | |
// the URL below is changed. Any change will invalidate the cache | |
var css_href = './index_files/web-fonts.css'; | |
// a simple event handler wrapper | |
function on(el, ev, callback) { | |
if (el.addEventListener) { | |
el.addEventListener(ev, callback, false); |