(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.
| var OFF = 0, WARN = 1, ERROR = 2; | |
| module.exports = exports = { | |
| "env": { | |
| "es6": true | |
| }, | |
| "ecmaFeatures": { | |
| // env=es6 doesn't include modules, which we are using | |
| "modules": true |
(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.
| (function() { | |
| /** | |
| * 记录方法使用情况的类 | |
| * @param {Array.<boolean>} umMap 初始的使用情况 | |
| */ | |
| var UsageManager = function(umMap) { | |
| this.umMap = umMap || []; | |
| }; | |
| /** | |
| * 记录新的使用情况 |
| /* Define two variables as the loop limits */ | |
| @from: 1; | |
| @to: 12; | |
| /* Create a Parametric mixin and add a guard operation */ | |
| .loop(@index) when(@index =< @to) { | |
| &:nth-child(@{index}) { | |
| animation-delay: (@index - 1) /12s; // calc with the unit | |
| transform: rotate(30deg * (@index - 6)) translateY(-150%); | |
| } |