I hereby claim:
- I am josegl on github.
- I am jgldev (https://keybase.io/jgldev) on keybase.
- I have a public key ASBX-DOizz1LIMBRBanNLLSFxn0cVy0bkjRJa51L_2iIbAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
'use strict'; | |
var _cloneNode, _createElement, _isCanvasBlank, jsPDF, downloadPdf; | |
_cloneNode = function(node, javascriptEnabled) { | |
var child, clone; | |
clone = node.nodeType === 3 ? document.createTextNode(node.nodeValue) : node.cloneNode(false); | |
child = node.firstChild; | |
while (child) { | |
if (javascriptEnabled === true || child.nodeType !== 1 || child.nodeName !== 'SCRIPT') { | |
clone.appendChild(_cloneNode(child, javascriptEnabled)); |
'use strict'; | |
var util = newUtil(); | |
var inliner = newInliner(); | |
var fontFaces = newFontFaces(); | |
var images = newImages(); | |
// Default impl options | |
var defaultOptions = { | |
// Default is to fail on error, no placeholder |
router.get('/', (req, res) => { | |
if(req.user){ | |
if req.user.active){ | |
if(req.query.id){ | |
findById(req.query.id).then(fClient => { | |
if(fClient){ | |
res.json(fClient); | |
} else { | |
res.json({}); | |
} |
import React, { Component } from 'react'; | |
import { connect } from 'react-redux'; | |
import { fetchItemsIfNeeded } from './actions'; | |
import ListItem from './ListItem'; | |
class List extends Component{ | |
constructor(props) { | |
super(props); | |
} | |
import React from 'react'; | |
export default ({ | |
items, fetchItems | |
}) => { | |
if(items.size === 0) | |
fetchItems(); | |
return (<div>{items}</div>); | |
}; |
export default ({ | |
value, update | |
}) => (¬ | |
<div> | |
<input onChange={e => update(e.target.value) value={value}}/> | |
</div>¬ | |
); |
java -Dswing.aatext=true -Dswing.plaf.metal.controlFont=Tahoma-20 -Dswing.plaf.metal.userFont=Tahoma-20 -jar file.jar |
import React, { Component, PropTypes } from 'react'; | |
import { connect } from 'react-redux'; | |
import { fetchItemsIfNeeded } from '../actions'; | |
import ListItem from '../components/ListItem'; | |
class ItemsList extends Component { | |
constructor(props) { | |
super(props); | |
} |