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') |
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
p1 = Person.new | |
puts p1.greet | |
... | |
p1 = Person.new("Jhon Doe") | |
puts p1.greet |
OlderNewer