Hello from Gist!
Hello from IDEAS.md
Markdown ↔ HTML view
Confirmation for certain actions
/** | |
* Wraps a <select> to fire onChange in Firefox when the keyboard is used to | |
* change the selection. | |
*/ | |
var Select = React.createClass({ | |
propTypes: { | |
onChange: React.PropTypes.func.isRequired | |
}, | |
// <select> doesn't have its selection updated yet when onKeyDown fires | |
handleKeyDown(e) { |
require('array.prototype.fill') | |
var React = require('react') | |
var EmailList = require('./EmailList') | |
var App = React.createClass({ | |
render() { | |
return <div className="App"> | |
<EmailList quantity={5}/> | |
</div> |
{ | |
"name": "Gist Test", | |
"steps": [ | |
{ | |
"text": "Testing loading a tutorial from a Gist.", | |
"code": "React.render(<h1>Hello from Gist!</h1>, output)", | |
"solution": "" | |
} | |
] | |
} |
<meta charset="UTF-8"> | |
<script src="https://fb.me/react-0.13.3.js"></script> | |
<script src="https://fb.me/JSXTransformer-0.13.3.js"></script> | |
<script src="https://rawgit.com/JedWatson/react-codemirror/master/dist/react-codemirror.js"></script> | |
<link rel="stylesheet" href="https://rawgit.com/codemirror/CodeMirror/master/lib/codemirror.css"> | |
<div id="app"></div> | |
<script type="text/jsx;harmony=true">void function() { "use strict"; | |
var valueSeed = 1 |
[].forEach.call(document.querySelectorAll('.timeline-comment-wrapper'), comment => { | |
if (!comment.querySelector('.timeline-comment-label')) { | |
comment.style.display = 'none' | |
} | |
}) |
var baseCharCode = 'A'.charCodeAt(0) - 1 // Index is 1-based in Excel Interop | |
function excelColIndex(colName) { | |
var index = 0 | |
for (var i = 0, pow = colName.length - 1; i < colName.length; i++, pow--) { | |
index += Math.pow(26, pow) * (colName.charCodeAt(i) - baseCharCode) | |
} | |
return index | |
} |
<meta charset="UTF-8"> | |
<title>Did vs. Didn't</title> | |
<script src="https://fb.me/react-0.13.3.min.js"></script> | |
<link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'> | |
<style> | |
body { | |
font-family: ubuntu, sans-serif; | |
} | |
.App__things { | |
display: flex; |
As of 1.8, assets are stored by hash, which makes it fiddly to listen to Minecraft's amazing ambient soundtrack outside the game.
This script can be used to copy music files to appopriately-named and organised .ogg
files for easier listening.
assets
directory: