(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.
(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 array = [{},{},{}]; | |
var copy = _.map(array, _.clone); |
[ | |
{ | |
"id": 186, | |
"user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36", | |
"classification": "javascript_href", | |
"created_at": "2014-09-10T02:22:04.686Z", | |
"updated_at": "2014-09-10T02:22:04.686Z", | |
"weak_id": "1UStqNc8fKXFDV9rEtrV28TtjhbuwNpJURlvr4LKJnU=", | |
"report": "{\"csp-report\":{\"document-uri\":\"http://csp-inline-fingerprint.herokuapp.com/csp/javascript_href\",\"referrer\":\"http://csp-inline-fingerprint.herokuapp.com/\",\"violated-directive\":\"style-src 'none'\",\"original-policy\":\"default-src 'none'; script-src 'none'; style-src 'none'; report-uri /csp/javascript_href?id=1UStqNc8fKXFDV9rEtrV28TtjhbuwNpJURlvr4LKJnU=\",\"blocked-uri\":\"\",\"source-file\":\"chrome-extension://gighmmpiobklfepjocnamgkkbiglidom\",\"line-number\":102,\"column-number\":47,\"status-code\":200}}" | |
}, |
expect(fn).toThrow(e); | |
expect(instance).toBe(instance); | |
expect(mixed).toBeDefined(); | |
expect(mixed).toBeFalsy(); | |
expect(number).toBeGreaterThan(number); | |
expect(number).toBeLessThan(number); | |
expect(mixed).toBeNull(); | |
expect(mixed).toBeTruthy(); | |
expect(mixed).toBeUndefined(); | |
expect(array).toContain(member); |
// Reference: http://stackoverflow.com/questions/4822471/count-number-of-lines-in-a-git-repository | |
$ git ls-files | xargs wc -l |
This is a comparison of the different formatting styles including with clang-format.
Generated via:
styles=( LLVM Google Chromium Mozilla WebKit )
for style in $styles
do
clang-format -style=$style ChLcpIterativeAPGD.h > ChLcpIterativeAPGD.$style.h
done
#!/bin/bash | |
# Note your /usr/local will need to be writable by the user running it, | |
# alternatively run it with `sudo` | |
hasxz=$(which xzcat) | |
os=$(uname | tr '[A-Z]' '[a-z]') | |
arch=$(uname -m) | |
targetdir="/usr/local/" | |
domain=nodejs.org |
Hi Nicholas,
I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I led the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:
The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can't
# -*- coding:utf-8 -*- | |
from __future__ import absolute_import | |
from __future__ import unicode_literals | |
from __future__ import print_function | |
import json | |
import uuid | |
import time | |
import gevent |
Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math