This file contains hidden or 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
| import { PropTypes } from "react"; | |
| import { CompatComponent } from "react-compat-component"; | |
| export default class HelloWorld extends CompatComponent { | |
| getMixins() { | |
| return [ | |
| DummyMixin | |
| ]; | |
| } |
This file contains hidden or 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
| import React from "react"; | |
| export default class HelloWorld extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| world: "World" | |
| }; | |
| } |
This file contains hidden or 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
| var React = require("react"); | |
| var HelloWorld = React.createClass({ | |
| mixins: [ | |
| DummyMixin | |
| ], | |
| getInitialState: function() { | |
| return { | |
| world: "World" | |
| }; |
This file contains hidden or 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
| function cpu() { | |
| usage=$(ps aux | awk {'sum+=$3;print int(sum/4+.5)'} | tail -n 1) | |
| graph=$(spark 0 ${usage} 100 | awk '{print substr($0,4,3)}') | |
| echo "[$usage%] $graph" | |
| } |
NewerOlder