This file contains 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
找出想要進入的image的名稱: | |
docker-machine ls #通常是default | |
取得當前docker image的ip: | |
docker-machine ip default #以default為例 | |
取出ip後,以192.168.99.100為例,找出這個image的使用者帳密。通常使用者是docker,密碼是tcuser。 | |
可以透過docker-machine ssh default進入default這個machine修改密碼。 |
This file contains 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, {Component} from 'react'; | |
import {View, TextInput, Button} from 'react-native'; | |
class App extends Component { | |
state = { | |
value: null | |
} | |
onSubmit = () => { | |
this.setState({ |
This file contains 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, {Component} from 'react'; | |
import { | |
View, | |
Text, | |
Button, | |
} from 'react-native'; | |
import Picker from 'react-native-picker'; | |
let data = ['男', '女', '未知']; |
This file contains 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, { Component } from 'react' | |
import { View, Text } from 'react-native'; | |
import DatePicker from 'react-native-datepicker' | |
export default class DatePickerExample extends Component { | |
constructor(props){ | |
super(props) | |
this.state = {date:"2016-05-15"} | |
} |
This file contains 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
// @flow | |
import React, {Component} from 'react'; | |
import {Actions, ActionConst, Router, Scene} from 'react-native-router-flux'; | |
import Home from './Home'; | |
import Home1 from './Home1'; | |
import PickerExample from './PickerExample'; | |
import DatePickerExample from './DatePickerExample'; | |
import TabIcon from './TabIcon'; |
This file contains 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, {Component} from 'react'; | |
import { | |
View, | |
Text, | |
Button, | |
} from 'react-native'; | |
import {Actions} from 'react-native-router-flux'; | |
export default class Home1 extends Component { |
This file contains 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, { Component } from 'react' | |
import { View, Text } from 'react-native'; | |
export default class DatePickerExample extends Component { | |
constructor(props){ | |
super(props) | |
this.state = {} | |
} | |
render(){ |
This file contains 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, {Component} from 'react'; | |
import { | |
View, | |
Text, | |
Button, | |
} from 'react-native'; | |
export default class PickerExample extends Component { | |
constructor(props) { |
This file contains 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, {Component} from 'react'; | |
import { | |
View, | |
Image, | |
Text, | |
Dimensions, | |
} from 'react-native'; | |
const windowWidth = Dimensions.get('window').width; |
This file contains 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, {Component} from 'react'; | |
import { | |
View, | |
Text, | |
Button, | |
} from 'react-native'; | |
import {Actions} from 'react-native-router-flux'; | |
export default class Home extends Component { |
NewerOlder