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
# Inside Digital Ocean | |
create new project | |
name project (without resources) | |
get started with a droplet | |
settings: Ubuntu 16.04 + 10$ + USA-New York 3 | |
create | |
digital ocean send an email with root password | |
# Setting root and deploy users | |
ssh root@IPADDRESS |
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
const myTeam = { | |
center: <li>Benzo Walli</li>, | |
powerForward: <li>Rasha Loa</li>, | |
smallForward: <li>Tayshaun Dasmoto</li>, | |
shootingGuard: <li>Colmar Cumberbatch</li>, | |
pointGuard: <li>Femi Billon</li> | |
}; |
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
myPets = { | |
'dog': 'canine', | |
'cat': 'feline', | |
'donkey': 'asinine'} |
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
class MyComponentClass extends React.Component { | |
render(){ | |
return <h1>Hello World</h1> | |
} | |
}; |
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
class MyRubyClass | |
def render | |
"Hello World" | |
end | |
end |
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
class App extends Component { | |
constructor(props){ | |
super(props) | |
this.state = { latitude: null, errorMessage: '' } | |
} | |
} |
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
class Customer | |
def initialize(id, name, addr) | |
@cust_id = id | |
@cust_name = name | |
@cust_addr = addr | |
end | |
end |
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
class App extends Component { | |
constructor(props){ | |
super(props) | |
this.state = { lat: null, errorMessage: '' } | |
} | |
onMouseMove = (event) => { | |
this.setState({ | |
styleOne: transform(-event.clientX / event.clientY), |
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
class Person | |
def initialize(name) | |
@name = name | |
end | |
def change_name=(other_name) | |
@name = other_name | |
end | |
end |
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
ReactDOM.render( | |
<App />, | |
document.getElementById('root') | |
); | |
... | |
ReactDOM.render( | |
<App name="Jhon Doe" />, | |
document.getElementById('root') |
OlderNewer