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
| setTimeout(() => { | |
| const testLength = 1 * 1000 * 1000; | |
| const testPhases = 5; | |
| const measurements = { | |
| forOf: { | |
| array: [], | |
| hash: [], | |
| map: [] | |
| }, |
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
| { | |
| const WebSocket = require('ws'); | |
| const wss = new WebSocket.Server({ port: 80 }); | |
| wss.on('connection', (ws) => { | |
| ws.on('message', (msg) => { | |
| console.log(msg); | |
| ws.send(msg.toString()); | |
| }); |
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
| # Thanks to http://rzander.azurewebsites.net/script-to-install-or-update-drivers-directly-from-microsoft-catalog/ | |
| # for giving me a basic idea | |
| # | |
| # Phase 1: Search | |
| # | |
| # First, set up Microsoft Update service manager | |
| # Reference: https://docs.microsoft.com/en-us/windows/desktop/wua_sdk/opt-in-to-microsoft-update | |
| $UpdateSvc = New-Object -ComObject Microsoft.Update.ServiceManager |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>PayloadContent</key> | |
| <array> | |
| <dict> | |
| <key>AttachAPN</key> | |
| <dict> | |
| <key>Name</key> |
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> | |
| <meta charset="UTF-8"> | |
| <title>for-of VS forEach</title> | |
| <script src="./benchmark.js"></script> |
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
| { | |
| const iterMax = 100; | |
| let counter = 0; | |
| const getArray = () => { | |
| const ret = []; | |
| for (let iter = 0; iter < iterMax; iter += 1) { | |
| ret.push(iter); | |
| } |
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
| #!/usr/bin/node | |
| { | |
| const dns = require('dns'); | |
| const https = require('https'); | |
| const os = require('os'); | |
| const ipInterfaceName = ''; | |
| const ip6InterfaceName = ''; |
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
| [global] | |
| workgroup = makotom.org | |
| server string = makotom.org | |
| server role = standalone server | |
| server min protocol = SMB2 | |
| smb encrypt = required | |
| dns proxy = yes | |
| create mask = 0644 |
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 lang="ja"> | |
| <meta charset="UTF-8"> | |
| <title>平成28年(受)第2099号,第2100号 未払賃金等支払請求事件 平成30年6月1日 第二小法廷判決</title> | |
| <!-- http://www.courts.go.jp/app/files/hanrei_jp/784/087784_hanrei.pdf --> | |
| <article> | |
| <h1>平成28年(受)第2099号,第2100号 未払賃金等支払請求事件 平成30年6月1日 第二小法廷判決</h1> | |
| <section> |
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
| String.prototype.toFiniteNumber = function () { | |
| const numNumbered = Number(this); | |
| const numParsed = parseFloat(this); | |
| return numNumbered === numParsed && Number.isFinite(numNumbered) ? | |
| numNumbered : | |
| NaN; | |
| }; |