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 process */ | |
| // Exhaustively searches for islands in a minimum spanning tree. | |
| var fs = require('fs'); | |
| if (process.argv.length < 3) { | |
| console.log('Usage: node tools/check-for-islands.js minimum-spanning-tree.json'); | |
| } | |
| var mst = JSON.parse(fs.readFileSync(process.argv[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 artistNodes = document.getElementsByClassName('CategoryTreeLabel'); | |
| var nodeCount = artistNodes.length; | |
| var names = []; | |
| for (var i = 0; i < nodeCount; ++i) { | |
| let name = artistNodes[i].textContent; | |
| name = name.replace('(band) ', ''); | |
| name = name.replace(' members', ''); | |
| names.push(name); | |
| } | |
| console.log(JSON.stringify(names, null, 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
| <svg id="garden-board" width="1000" height="3000"> | |
| <g class="plant-layer"><g transform="translate(0,0)"><rect id="03a0416" width="17" height="13" fill="rgb(190, 210, 237)"></rect></g><g transform="translate(0,14)"><rect id="22bf24a" width="17" height="14" fill="rgb(190, 210, 237)"></rect></g><g transform="translate(0,29)"><rect id="24ea52c" width="17" height="13" fill="rgb(190, 210, 237)"></rect></g><g transform="translate(18,0)"><rect id="4b62869" width="16" height="13" fill="rgb(190, 210, 237)"></rect></g><g transform="translate(18,14)"><rect id="6780740" width="16" height="14" fill="rgb(190, 210, 237)"></rect></g><g transform="translate(18,29)"><rect id="6d405a1" width="16" height="13" fill="rgb(190, 210, 237)"></rect></g><g transform="translate(35,0)"><rect id="8e9e31b" width="13" height="17" fill="rgb(190, 210, 237)"></rect></g><g transform="translate(49,0)"><rect id="ac6d3d3" width="13" height="17" fill="rgb(190, 210, 237)"></rect></g><g transform="translate(63,0)"><rect id="c320142" width="13" height |
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
| cat /var/log/kern.log | grep <process name> |
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 stripLinks(s) { | |
| return s.replace(/https*:\/\/.*\b/g, ''); | |
| } |
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
| [ | |
| "AAA", | |
| "AAB", | |
| "AAC", | |
| "AAD", | |
| "AAE", | |
| "AAF", | |
| "AAG", | |
| "AAH", | |
| "AAI", |
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
| AAA | |
| AAB | |
| AAC | |
| AAD | |
| AAE | |
| AAF | |
| AAG | |
| AAH | |
| AAI | |
| AAJ |
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
| [ | |
| { | |
| "id": "2ck8lFrYAch2GPtdhpTHe3", | |
| "name": "All Together Now - Remastered" | |
| }, | |
| { | |
| "id": "2qUHGEbPevF1XHhQbQA8kL", | |
| "name": "ABC-DEF-GHI" | |
| }, | |
| { |
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 a = {x: 0, y: 0}; | |
| undefined | |
| > var b = {x: 0, y: 0}; | |
| undefined | |
| > var list = [a, b]; | |
| undefined | |
| > list[0] === a | |
| true | |
| > list[0] === b | |
| false |