Skip to content

Instantly share code, notes, and snippets.

View HichemBenChaaben's full-sized avatar
🚀
RW Code™️

Hichem ben chaabene HichemBenChaaben

🚀
RW Code™️
  • Amsterdam
  • 19:18 (UTC -12:00)
View GitHub Profile
@demisx
demisx / protractor-cheatsheet.coffee
Last active September 27, 2020 00:03
Protractor e2e Cheatsheet (CoffeeScript)
browser.get "/phones" # navigate to /phones URL
input.clear() # clear text input field
expect(browser.getTitle()).toMatch 'My Google Photo Gallery'
expect(browser.getCurrentUrl()).toMatch "/phones$"
# Find by...
# --------------
@jacob-beltran
jacob-beltran / requestAnimationFrame.js
Last active April 17, 2020 04:05
React Performance: requestAnimationFrame Example
// How to ensure that our animation loop ends on component unount
componentDidMount() {
this.startLoop();
}
componentWillUnmount() {
this.stopLoop();
}