() {
:boom: console.log(234);
}
This file contains hidden or 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
--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 |
https://github.com/cevek/jscost
if (k) v = 1: 0.8nsif (k) v = 1 else v = 0: 0.4ns
switch 10 cases (per case): 0.4ns
n1 && n2 && ... (per item): 1.7ns
This file contains hidden or 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
function Node(kind) { | |
this.kind = kind; | |
} | |
var node = new Node(0); | |
var node1 = new Node(1); | |
node1.expression = node; | |
var node2 = new Node(2); |
This file contains hidden or 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
var orig = Common.Revealer.reveal; | |
Common.Revealer.reveal = function(revealable, omitFocus) { | |
console.log(revealable); | |
// console.log(Persistence.persistence.binding(uiSourceCode).fileSystem.url()) | |
orig.apply(this, arguments); | |
} | |
This file contains hidden or 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
function getRandomObj(i) { | |
switch (i % 5) { | |
case 0: | |
return {a: 1, b: i, c: 3, d: "abc", k: true}; | |
case 1: | |
return {c: "sadf", k: false}; | |
case 2: | |
return {a: null, b: 45}; | |
case 3: | |
return {a: null, b: 45, c: 2, d: "Asdaf"}; |
This file contains hidden or 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
--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 |
This file contains hidden or 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
import * as React from 'react'; | |
interface AppProps { | |
urlParams: { name: string }, | |
searchParams: { foo: string } | |
} | |
class App extends React.Component<AppProps, {}> { | |
} | |
interface ListProps { |
This file contains hidden or 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
copy('[playlist]\n'+AudioAddict.WP.channels.map((ch,i) => (ch=ch.channel ? ch.channel : ch,`File${i+1}=http://pub1.diforfree.org:8000/di_${ch.key}_hi\nTitle${i+1}=${ch.name}`)).join('\n\n') + `\n\nNumberOfEntries=${AudioAddict.WP.channels.length}\nVersion=2`) |