Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| https://jsbin.com/debohu/1/edit?html,js,output |
| http://paulboxley.com/blog/2011/06/git-caret-and-tilde | |
| http://alblue.bandlem.com/2011/05/git-tip-of-week-git-revisions.html |
| const R = require('ramda') | |
| const { | |
| compose, | |
| curry, | |
| head, | |
| isEmpty, | |
| length, | |
| not, | |
| prop, | |
| is, |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| -- 将一个元素插入 list 的方式个数 | |
| insert::a -> [a] -> [[a]] | |
| insert n [] = [[n]] | |
| insert n (n':ns) = (n:n':ns):[n':ns'| ns' <- insert n ns] | |
| -- 排列的意思就是, 将一个元素插入到所有其他 n-1 个元素的排列中 | |
| permutation::[a] -> [[a]] | |
| permutation [] = [[]] | |
| permutation (n:ns) = concat [ insert n ns' | ns' <- permutation n ns ] |
| const compose = (f, g) => (x) => f(g(x)) |
(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.
用例子讲解 RxJS 5 的 Operators 。
用例子讲解 RxJS 5 的 Operators 。
| function Seer(dataObj) { | |
| let signals = {}; | |
| observeData(dataObj); | |
| return { | |
| data: dataObj, | |
| observe, | |
| notify | |
| } |