This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<div id="app"></div> | |
<script src="https://unpkg.com/react/dist/react.min.js" type="text/javascript"></script> | |
<script src="https://unpkg.com/react-dom/dist/react-dom.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
(function() { | |
var h = React.createElement; | |
var Hello = React.createClass({ | |
render: function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Elem = require('elemjs'); | |
Elem.jsx = (type, attributes, ...children) => { | |
if (attributes === null) { | |
return Elem.sel(type, children); | |
} | |
return Elem.el(type, attributes, children); | |
}; | |
export default Elem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
lines_to_skip=`t timeline | wc -l | sed 's/^ *//g'` | |
i=0 | |
echo Skipping [$lines_to_skip] lines in the timeline | |
echo From now on, say each tweet as soon as it arrives... | |
t stream timeline | while read -r line; do |