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
| i => edit | |
| <vim 操作指令> | |
| esc => exit edit | |
| :q => quit vim | |
| :q! => quit vim & not overwrite | |
| :wq => write & quit vim | |
| ------------------------------------------------- | |
| <Terminal 操作指令> | |
| ll => list file and directory |
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 RadioGroup = React.createClass({ | |
| getInitialState: function () { | |
| return { | |
| select: null | |
| }; | |
| }, | |
| handleRdioBtnChange: function(e){ | |
| this.setState({ |
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'; | |
| import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table'; | |
| var products = []; | |
| function addProducts(quantity) { | |
| var startId = products.length; | |
| for (var i = 0; i < quantity; i++) { | |
| var id = startId + i; | |
| products.push({ |
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
| /* eslint max-len: 0 */ | |
| /* eslint no-unused-vars: 0 */ | |
| import React from 'react'; | |
| import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; | |
| const products = []; | |
| function addProducts(quantity) { | |
| const startId = products.length; | |
| for (let i = 0; i < quantity; i++) { |
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 org.apache.hadoop.hbase.util.Bytes | |
| import org.apache.hadoop.hbase.{HColumnDescriptor, HTableDescriptor, TableName, HBaseConfiguration} | |
| import org.apache.hadoop.hbase.client._ | |
| import org.apache.spark.SparkContext | |
| import scala.collection.JavaConversions._ | |
| /** | |
| * HBase 1.0.0 新版API, CRUD 的基本操作代码示例 | |
| **/ | |
| object HBaseNewAPI { |
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
| class Table extends React.Component { | |
| render() { | |
| return ( | |
| <BootstrapTable data={ products }> | |
| <TableHeaderColumn dataField='id' isKey>Product ID</TableHeaderColumn> | |
| <TableHeaderColumn dataField='name'>Product Name</TableHeaderColumn> | |
| <TableHeaderColumn dataField='price'>Product Price</TableHeaderColumn> | |
| </BootstrapTable> | |
| ); | |
| } |
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
| class NoDataTable extends React.Component { | |
| render() { | |
| return ( | |
| <BootstrapTable data={ products } options={ { noDataText: 'This is custom text for empty data' } }> | |
| <TableHeaderColumn dataField='id' isKey={ true }>Product ID</TableHeaderColumn> | |
| <TableHeaderColumn dataField='name'>Product Name</TableHeaderColumn> | |
| <TableHeaderColumn dataField='price'>Product Price</TableHeaderColumn> | |
| </BootstrapTable> | |
| ); | |
| } |
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
| class BorderlessTable extends React.Component { | |
| render() { | |
| return ( | |
| <BootstrapTable data={ products } bordered={ false }> | |
| <TableHeaderColumn dataField='id' isKey={ true }>Product ID</TableHeaderColumn> | |
| <TableHeaderColumn dataField='name'>Product Name</TableHeaderColumn> | |
| <TableHeaderColumn dataField='price'>Product Price</TableHeaderColumn> | |
| </BootstrapTable> | |
| ); | |
| } |
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
| class HoverStripedTable extends React.Component { | |
| render() { | |
| return ( | |
| <BootstrapTable data={ products } striped hover condensed> | |
| <TableHeaderColumn dataField='id' isKey>Product ID</TableHeaderColumn> | |
| <TableHeaderColumn dataField='name'>Product Name</TableHeaderColumn> | |
| <TableHeaderColumn dataField='price'>Product Price</TableHeaderColumn> | |
| </BootstrapTable> | |
| ); | |
| } |
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
| class LargeColumnTable extends React.Component { | |
| render() { | |
| return ( | |
| <BootstrapTable data={ products }> | |
| <TableHeaderColumn width='150' dataField='id' isKey>ProductID</TableHeaderColumn> | |
| <TableHeaderColumn width='150' dataField='name'>ProductName</TableHeaderColumn> | |
| <TableHeaderColumn width='150' dataField='price'>ProductPrice</TableHeaderColumn> | |
| <TableHeaderColumn width='150' dataField='name'>ProductName</TableHeaderColumn> | |
| <TableHeaderColumn width='150' dataField='price'>ProductPrice</TableHeaderColumn> | |
| <TableHeaderColumn width='150' dataField='name'>ProductName</TableHeaderColumn> |