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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title>Untitled benchmark</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
| <script src="./suite.js"></script> | |
| </head> | |
| <body> | |
| <h1>Open the console to view the results</h1> |
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
| Connection-specific DNS Suffix . : prettydiff | |
| IPv6 Address. . . . . . . . . . . : 2600:1700:1220:76c9:f982:507a:283b:3df9 | |
| Temporary IPv6 Address. . . . . . : 2600:1700:1220:76c9:c8aa:b730:bad4:ece8 | |
| Link-local IPv6 Address . . . . . : fe80::f982:507a:283b:3df9%14 | |
| IPv4 Address. . . . . . . . . . . : 192.168.0.161 | |
| Subnet Mask . . . . . . . . . . . : 255.255.255.0 | |
| Default Gateway . . . . . . . . . : fe80::76da:daff:fead:ba8a%14 | |
| 192.168.0.23 | |
| Ethernet adapter Ethernet 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
| security = function dom_load_security():void { | |
| const scripts:HTMLCollectionOf<HTMLScriptElement> = document.getElementsByTagName("script"), | |
| exclusions:string[] = [ | |
| "", //put relative addresses for your authorized scripts here | |
| ], | |
| len:number = scripts.length, | |
| exlen:number = exclusions.length; | |
| let a:number = 0, | |
| b:number = 0, | |
| src:string = ""; |
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 List = React.createClass({ | |
| renderList: function () { | |
| return this.props.items.map(function (item) { | |
| return <ListItem item={value} key={keyvalue.id} />; | |
| }); | |
| }, | |
| render: function () { | |
| return <ul className="List"> | |
| this.renderList() |
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 changeColor(str) { | |
| const arr = str.split(""); | |
| let a = arr.length - 1, | |
| b = 8; | |
| do { | |
| arr[a] = `\u001b[3${b}m${arr[a]}`; | |
| a = a - 1; | |
| b = b - 1; | |
| if (b < 1) { |
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
| window.parseFramework={language:function framework_language(){"use strict";return},lexer:{},parse:{},parseerror:"",parser:function framework_parser(){"use strict";return}};/* | |
| Parse Framework | |
| */ | |
| /*jslint node:true */ | |
| /*eslint-env node*/ | |
| /*eslint no-console: 0*/ | |
| /*global global, location*/ | |
| (function parse_init() { | |
| "use strict"; | |
| let framework; |
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
| users.put('/users/:id', (req, res, next) => { | |
| function validateAuthentication(userId) { | |
| if (userId) { | |
| throw Unauthenticated('You have to log in'); | |
| } | |
| } | |
| function ValidateOtherPermission(user) { | |
| const hasPermission = checkPermission({ | |
| actualRole: user.Role, |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title>dom walking versus querySelector - 3</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
| <script src="./suite.js"></script> | |
| </head> | |
| <body> | |
| <h1>Open the console to view the results</h1> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title>dom walking versus querySelector - 2</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
| <script src="./suite.js"></script> | |
| </head> | |
| <body> | |
| <h1>Open the console to view the results</h1> |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"/> | |
| <title>dom walking versus querySelector - 1</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
| <script src="./suite.js"></script> | |
| </head> | |
| <body> | |
| <h1>Open the console to view the results</h1> |