- Check for an existing
.gitignorefile in the project directory
ls -a| anon true, if the space may be omitted in anonymous function declarations | |
| bitwise true, if bitwise operators should be allowed | |
| browser true, if the standard browser globals should be predefined | |
| cap true, if upper case HTML should be allowed | |
| continue true, if the continuation statement should be tolerated | |
| css true, if CSS workarounds should be tolerated | |
| debug true, if debugger statements should be allowed | |
| devel true, if logging should be allowed (console, alert, etc.) | |
| eqeq true, if == should be allowed | |
| es5 true, if ES5 syntax should be allowed |
| $ = jQuery | |
| TIMEOUT = 20000 | |
| lastTime = (new Date()).getTime() | |
| setInterval -> | |
| currentTime = (new Date()).getTime() | |
| # If timeout was paused (ignoring small | |
| # variations) then trigger the 'wake' event | |
| if currentTime > (lastTime + TIMEOUT + 2000) |
A Pen by Tony Brown on CodePen.
| node_modules | |
| package-lock.json |
React recently introduced an experimental profiler API. This page gives instructions on how to use this API in a production release of your app.
Table of Contents
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
| /*! = $rembase: 14px | |
| -------------------------------------------------------------- | |
| * hmtl { font-size: 87.5%; } | |
| * body { font-size: 14px; font-size: 1rem; line-height: 1; } | |
| * 4px 0.28571429rem | |
| * 8px 0.571428571rem | |
| * 12px 0.857142857rem | |
| * 13px 0.928571429rem | |
| * 14px 1rem | |
| * 16px 1.142857143rem |
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| function getFirstLast(array) { | |
| const { | |
| 0: first, | |
| length: len, | |
| [len - 1]: last | |
| } = array | |
| return {first, last} | |
| } |