Skip to content

Instantly share code, notes, and snippets.

@linyanzhong
linyanzhong / ElmComponent.tsx
Created September 12, 2016 04:15
ELM-React dummy component
export class ElmComponent extends React.Component <void, void> {
componentDidMount () {
document.getElementById('elm-app').style.display = 'block'
}
componentWillUnmount () {
document.getElementById('elm-app').style.display = 'none'
}
render () {
@linyanzhong
linyanzhong / index.jsx
Created September 6, 2016 04:41
React ELM Component
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>React + Elm</title>
<link href="node_modules/emojione-picker/css/picker.css" rel="stylesheet" />
<link href="styles.css" rel="stylesheet" />
</head>
<body>
<a href="#/chat">Chat</a>
Nov 20 02:00:02 hzlog2 influxd: [query] 2015/11/20 02:00:02 SELECT * FROM "collectd"."default"./.*/ WHERE time >= '2015-11-19T13:00:00Z' AND time < '2015-11-19T13:05:00Z'
Nov 20 02:00:02 hzlog2 influxd: [query] 2015/11/20 02:00:02 SELECT last(value) AS "value" FROM "collectd"."default"./^df_free$|^df_used$/ WHERE time > now() - 10m GROUP BY host, instance, type_instance
Nov 20 02:00:02 hzlog2 influxd: [http] 2015/11/20 02:00:02 127.0.0.1 - api [20/Nov/2015:02:00:02 +0800] GET /query?q=%0A++++++++select+last%28value%29+as+value%0A++++++++from+%2F%5Edf_free%24%7C%5Edf_used%24%2F%0A++++++++where+time+%3E+now%28%29+-+10m%0A++++++++group+by+host%2C+instance%2C+type_instance%0A++++&db=collectd HTTP/1.1 200 11899 - python-requests/2.8.1 5b0cb6f4-8ee7-11e5-83de-000000000000 79.896426ms
Nov 20 02:00:03 hzlog2 influxd: [http] 2015/11/20 02:00:03 127.0.0.1 - api [20/Nov/2015:02:00:02 +0800] GET /query?q=select+%2A+from+%2F.%2A%2F+where+time+%3E%3D+%272015-11-19+13%3A00%3A00%27+and+time+%3C+%272015-11-19+13%3A05%3A00%27&