Skip to content

Instantly share code, notes, and snippets.

View davidlivingrooms's full-sized avatar

Bizbee davidlivingrooms

View GitHub Profile
fewfewf
import random
min = 1
max = 6
roll_again = "yes"
while roll_again == "yes" or roll_again == "y":
print "Rolling the dices..."
print "The values are...."
print random.randint(min, max)
print "Hello, World!\n"
Select * from users
<Paper>
<CodeMirror > </CodeMirror>
</Paper>
getGistContent = () => {
const options = {
lineNumbers: true,
readOnly: true,
mode: this.getCodeMirrorModeByFileExtension(this.props.file)
}
return (
<Paper zDepth={1} >
<CodeMirror value={this.props.file.content} options={options} />
@davidlivingrooms
davidlivingrooms / reactClassMinimum
Last active July 3, 2017 04:07
[React class minimum] A barebones es6 React class template #React
import React from 'react'
export default class {{gist_replace}} extends React.Component {
static propTypes = {
}
render() {
return (
@davidlivingrooms
davidlivingrooms / debugTimeout.js
Created July 14, 2016 15:59
debugging disapearing dom elements
setTimeout(function(){debugger}, 5000)