create package.js
npm init -y
create tsconfig.json
tsc --init
install deps
| --experimental_extras (enable code compiled in via v8_experimental_extra_library_files) | |
| type: bool default: false | |
| --use_strict (enforce strict mode) | |
| type: bool default: false | |
| --es_staging (enable test-worthy harmony features (for internal use only)) | |
| type: bool default: false | |
| --harmony (enable all completed harmony features) | |
| type: bool default: false | |
| --harmony_shipping (enable all shipped harmony features) | |
| type: bool default: true |
| (function showStoryboard() { | |
| var template = ytplayer.config.args.raw_player_response.storyboards.playerStoryboardSpecRenderer.spec; | |
| function getStoryboardImages(template) { | |
| var [url, _, _, layer] = template.split('|'); | |
| var [w, h, count, cols, rows, _, _, sig] = layer.split('#'); | |
| var countPerImage = cols * rows; | |
| var imgCount = Math.ceil(count / countPerImage); | |
| return Array(imgCount) | |
| .fill(0) |
create package.js
npm init -y
create tsconfig.json
tsc --init
install deps
| --use-strict (enforce strict mode) | |
| type: bool default: false | |
| --es-staging (enable test-worthy harmony features (for internal use only)) | |
| type: bool default: false | |
| --harmony (enable all completed harmony features) | |
| type: bool default: false | |
| --harmony-shipping (enable all shipped harmony features) | |
| type: bool default: true | |
| --harmony-regexp-sequence (enable "RegExp Unicode sequence properties" (in progress)) | |
| type: bool default: false |
| https://github.com/v8/v8/tree/master/src/runtime | |
| FinishArrayPrototypeSetup | |
| SpecialArrayFunctions | |
| FixedArrayGet | |
| FixedArraySet | |
| TransitionElementsKind | |
| RemoveArrayHoles | |
| MoveArrayContents | |
| EstimateNumberOfElements |
| "use strict"; | |
| function Bar(props) { return null; } | |
| React.createElement(Bar, { sdf: true, id: 'hello' }); | |
| React.createElement("div", { id: 'hi' }, "abc"); | |
| React.createElement("div", null, "abc"); |
| search | |
| abort | |
| blur | |
| change | |
| click | |
| close | |
| contextmenu | |
| dblclick | |
| drag | |
| dragend |
| function id8(p) { | |
| if (p > 3) { | |
| if (p > 5) { | |
| if (p === 6) { | |
| return 6; | |
| } else { | |
| return 7; | |
| } | |
| } else { |
| const offset = new Date().getTimezoneOffset(); | |
| function getDigit(s, p) { | |
| return s.charCodeAt(p) - 48; | |
| } | |
| function parseISOString(d) { | |
| return new Date( | |
| getDigit(d, 0) * 1000 + getDigit(d, 1) * 100 + getDigit(d, 2) * 10 + getDigit(d, 3), | |
| getDigit(d, 5) * 10 + getDigit(d, 6) - 1, | |
| getDigit(d, 8) * 10 + getDigit(d, 9), | |
| getDigit(d, 11) * 10 + getDigit(d, 12), |
| <html> | |
| <head> | |
| <script type="text/javascript"> | |
| // Your Client ID can be retrieved from your project in the Google | |
| // Developer Console, https://console.developers.google.com | |
| var CLIENT_ID = '469780497507-emil5hs8k93ro3fnpqqe8guvejsrj884.apps.googleusercontent.com'; | |
| var SCOPES = [/*'https://www.googleapis.com/auth/drive', */'https://www.googleapis.com/auth/drive.appfolder', 'https://www.googleapis.com/auth/drive.file']; | |
| /** |