Skip to content

Instantly share code, notes, and snippets.

View devhyunjae's full-sized avatar
🎯
Focusing

Hyunjae Park devhyunjae

🎯
Focusing
  • remote
  • 23:39 (UTC +09:00)
View GitHub Profile
var AppES5 = React.createClass({
render: function() {
return(
<div>Hello World</div>
);
}
});
{"version":1,"resource":"file:///Users/hyunjae/my-projects/goldspoon-website/pages/index.tsx","entries":[{"id":"iSul.tsx","source":"Fix all fixable ESLint issues","timestamp":1666836223948}]}
class AppES6 extends React.Component{
constructor(){
super();
this.state = {foo: 1};
this.handleChange = this.handleChange.bind(this);
}
handleChange(e) {
this.setState({foo: e.target.value});
}
render() {
var AppES5 = React.createClass({
getInitialState: function(){
return {foo: 1};
},
handleChange: function(e) {
this.setState({
foo: e.target.value
});
},
render: function(){
var AppES5 = React.createClass({
getInitialState: function(){
return {foo: 1};
},
render: function(){
return(
<div>{this.state.foo}</div>
);
}
});
class AppES6 extends React.Component{
constructor(){
super();
this.state = {foo: 1}
}
render() {
return(
<div>{this.state.foo}</div>
);
}
class Hr extends React.Component {
render () {
return(
<div><hr/><hr/><hr/></div>
);
}
}
t = 236 # seconds
Time.at(t).utc.strftime("%H:%M:%S")
=> "00:03:56"
# Reference
# http://stackoverflow.com/questions/3963930/ruby-rails-how-to-convert-seconds-to-time