- Fork https://github.com/github/dmca
- Download latest youtube-dl source code from https://yt-dl.org/latest
- Extract
tar -xvf youtube-dl-2020.09.20.tar.gz
- Push code to your fork as the GitHub CEO
tar -xvf youtube-dl-2020.09.20.tar.gz
Method | Side effects1 | State updates2 | Example uses |
---|---|---|---|
Mounting | |||
componentWillMount |
✓ | Constructor equivalent for createClass |
|
render |
Create and return element(s) | ||
componentDidMount |
✓ | ✓ | DOM manipulations, network requests, etc. |
Updating | |||
componentWillReceiveProps |
✓ | Update state based on changed props |
/* @flow */ | |
import * as I from "immutable"; | |
/** | |
* Define an immutable record intended for holding reducer state | |
* @param spec - the keys and their default values | |
* @return a state record factory function | |
*/ | |
export function defineRecord<T: Object>( |
To make the differences between the old ordinance and the new ordinance, I made a few adjustments to them to make the diff line up. Anything in red is being removed, anything in green is being added. Text in black and white is unchanged.
Renamed the DEFINITION section of the new ordinance to DEFINITIONS (plural) to match to show clearly where the real content begins. The new ordinance only has one definition.
Moved the PENALTY section from the end of the new ordenance to after DEFINITIONS to correlate to the original ordinance placement.
Renamed the TNC OPERATING AUTHORITY APPLICATION REQUIRED section of the new ordinance by removing the word "APPLICATION" to match the old ordinance.
In the IDENTITY section, replaced "app" in the new ordinance with "application" to match the old ordinance to demonstrate the similarity.
(function (global) { | |
"use strict"; | |
// Math.nextUp | |
// Note: | |
// Math.nextDown = function (x) { return -Math.nextUp(-x); }; | |
// Math.nextAfter = function (x, y) { return y < x ? -Math.nextUp(-x) : (y > x ? Math.nextUp(x) : (x !== x ? x : y)); }; | |
// Math.ulp = function (x) { return x < 0 ? Math.nextUp(x) - x : x - (-Math.nextUp(-x)); }; | |
var EPSILON = Math.pow(2, -52); |