I hereby claim:
- I am JustinTulloss on github.
- I am justint (https://keybase.io/justint) on keybase.
- I have a public key whose fingerprint is 89AE 1A30 88DC 1E48 35B5 1A88 FA53 8700 BCBB E17A
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Flexbox</title> | |
<style> | |
html, body { | |
height: 100%; | |
} | |
body { | |
margin: 0; |
// Here's the bootstrap, in something like "start.js" | |
import App from './components/App'; | |
import React from 'react'; | |
React.render(<App data={global.MyData}/>, document.getElementById('app')); | |
// Here's the index | |
<!DOCTYPE html> | |
<html> |
(╯°□°)╯︵ ┻━┻ |
MARKETING_JS_BUILD = $(MARKETING_MEDIA_BASE)/js/m.js | |
MARKETING_CSS_BUILD = $(MARKETING_MEDIA_BASE)/css/m.css | |
marketing: \ | |
$(addprefix $(MARKETING_MEDIA_BASE)/less/, $(MARKETING_LESS_FILES)) \ | |
concat-marketing-js \ | |
concat-marketing-css \ | |
$(MARKETING_JS_BUILD) \ | |
$(MARKETING_CSS_BUILD) |
#!/usr/bin/env python | |
from datetime import datetime | |
import os, sys | |
import json | |
import simplejson | |
import cjson | |
import jsonlib2 | |
// This will always evaluate to true | |
if (new Boolean(false)) { ... } | |
// And this will always evaulate to false | |
if (new Boolean(false) == true) { ... } | |
// But this will always evaluate to true | |
if (new Boolean(true) == true) { ... } |
Boolean(new Boolean(false)) => true | |
// Since the above is true, this if statement's | |
// expression will always evaluate to true. | |
if (new Boolean(false)) { ... } |
// Boolean instances are just objects | |
(new Boolean(false)) instanceof Boolean => true // obviously | |
(new Boolean(false)) instanceof Object => true | |
// false is a primitive | |
false instanceof Boolean => false | |
false instanceof Object => false |
// When you write something like this: | |
if (something) { ... } | |
// JS implicitly does something like this: | |
if (Boolean(something)) { ... } |