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
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| box = 'ubuntu/trusty64' | |
| hostname = 'emberclibox' | |
| domain = 'example.com' | |
| ip = '192.168.42.42' | |
| ram = '512' | |
| $rootScript = <<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
| [11:33:55 ERROR]: Mod Sorting failed. | |
| [11:33:55 ERROR]: Visting node APIContainer{CoFHAPI:1.0} | |
| [11:33:55 ERROR]: Current sorted list : [Dummy Container (BeforeAll) @428726854, Wrapped{mcp}, Wrapped{FML}, Wra | |
| pped{Forge}, Wrapped{Aroma1997Core}, Wrapped{CodeChickenCore}, Wrapped{<CoFH ASM>}, Wrapped{NotEnoughItems}, Wra | |
| pped{Dummy Container (null) @1155340994}, Dummy Container (Before) @804599493] | |
| [11:33:55 ERROR]: Visited set for this node : [Wrapped{Forge}, APIContainer{CoFHAPI|energy:1.7.10R1.0.2}, FMLMod | |
| :BuildCraft|Transport{6.3.6}, FMLMod:BuildCraft|Silicon{6.3.6}, Wrapped{<CoFH ASM>}, APIContainer{CoFHAPI:1.0}, | |
| Dummy Container (Before) @804599493, FMLMod:CoFHCore{1.7.10R3.0.0B9}, Wrapped{CodeChickenCore}, Wrapped{FML}, Wr | |
| apped{Aroma1997Core}, Dummy Container (AfterAll) @199153692, FMLMod:BuildCraft|Core{6.3.6}, Dummy Container (Bef | |
| oreAll) @428726854, Wrapped{Dummy Container (null) @1155340994}, Dummy Container (After) @1396579418, FMLMod:add |
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 html = (function () {/* | |
| <!DOCTYPE html> | |
| <html> | |
| <body> | |
| <h1>Hello, world!</h1> | |
| </body> | |
| </html> | |
| */}).toString().match(/[^]*\/\*([^]*)\*\/\}$/)[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
| /* VT100 terminal reset (<ESC>c) */ | |
| console.log('\033c'); | |
| /* numbers comparations */ | |
| > '2' == 2 | |
| true | |
| > '2' === 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
| const someArray = [2, 4, 8]; | |
| let someArraySquared = []; | |
| for (let i = 0; i < someArray.length; i += 1) { | |
| someArraySquared.push(someArray[i] * someArray[i]); | |
| } | |
| console.log(someArray, someArraySquared); // [2, 4, 8], [4, 16, 64] |
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 someArray = [2, 4, 8]; | |
| let someArraySquared = someArray.map(x => x * x); | |
| console.log(someArray, someArraySquared); // [2, 4, 8], [4, 16, 64] |
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 someArray = [2, 4, 8]; | |
| let someArraySquared = []; | |
| for (let n of someArray) { | |
| someArraySquared.push(n * n); | |
| } | |
| console.log(someArray, someArraySquared); |
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
| for (let char of 'yo!') { console.log(char); } | |
| // y | |
| // o | |
| // ! |
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 someArray = [2, 4, 8]; | |
| for (let n of someArray) { console.log(n); } | |
| // 2 | |
| // 4 | |
| // 8 |
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 makeIterator(array) { | |
| let nextIndex = 0; | |
| return { | |
| next: function() { | |
| return nextIndex < array.length ? | |
| {value: array[nextIndex++], done: false} : | |
| {done: true}; | |
| } | |
| }; | |
| } |
OlderNewer