Skip to content

Instantly share code, notes, and snippets.

View danielmoralesp's full-sized avatar
🎯
Focusing

Daniel M. danielmoralesp

🎯
Focusing
  • Software Engineer
  • Digital Nomad
View GitHub Profile
@danielmoralesp
danielmoralesp / gist:2979248b83931d9b90e49ce6c91e6464
Last active August 30, 2020 13:11
Digital Ocean + Rails 5.2 + Ubuntu 16.04 + Capistrano 3 + Passenger
# 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
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>
};
myPets = {
'dog': 'canine',
'cat': 'feline',
'donkey': 'asinine'}
class MyComponentClass extends React.Component {
render(){
return <h1>Hello World</h1>
}
};
class MyRubyClass
def render
"Hello World"
end
end
class App extends Component {
constructor(props){
super(props)
this.state = { latitude: null, errorMessage: '' }
}
}
class Customer
def initialize(id, name, addr)
@cust_id = id
@cust_name = name
@cust_addr = addr
end
end
class App extends Component {
constructor(props){
super(props)
this.state = { lat: null, errorMessage: '' }
}
onMouseMove = (event) => {
this.setState({
styleOne: transform(-event.clientX / event.clientY),
class Person
def initialize(name)
@name = name
end
def change_name=(other_name)
@name = other_name
end
end
ReactDOM.render(
<App />,
document.getElementById('root')
);
...
ReactDOM.render(
<App name="Jhon Doe" />,
document.getElementById('root')