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
let servers = []; | |
/** @param {NS} ns */ | |
export async function main(ns) { | |
ns.tail() | |
ns.disableLog("ALL") | |
let previousHost = ns.args[0]; | |
ns.printf("Previous host: %s", previousHost); | |
let currentHost = ns.getHostname(); | |
await scan(ns, currentHost); |
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
// optimal_hack.js | |
/** | |
* TODO | |
* - split jobs to fit in available machines | |
* - determine ideal growth factor based on resource? | |
* - determine hack amount based on resources (or as parameter) | |
*/ | |
/** @param {NS} ns */ | |
export async function main(ns) { |
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
/** | |
* TODO | |
* - job chunking | |
* - determine ideal growth factor based on resource? | |
* - determine hack amount based on resources (or as parameter) | |
*/ | |
/** @param {NS} ns */ | |
export async function main(ns) { | |
let target = ns.args[0] | |
ns.disableLog('ALL') |
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
let servers = []; | |
/** @param {NS} ns */ | |
export async function main(ns) { | |
ns.disableLog("ALL") | |
let previousHost = ns.args[0]; | |
ns.printf("Previous host: %s", previousHost); | |
let currentHost = ns.getHostname(); | |
ns.tail() | |
await scan(ns, currentHost); |
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
// deploy.js | |
/** @param {NS} ns */ | |
export async function main(ns) { | |
let previousHost = ns.args[0] | |
ns.printf("Previous host: %s", previousHost) | |
let currentHost = ns.getHostname() | |
let hosts = ns.scan() | |
for (let host of hosts) { | |
if (host === previousHost) continue; | |
if (ns.getServerRequiredHackingLevel(host) < ns.getHackingLevel()) { |
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
{ | |
"sections": { | |
"main": { | |
"type": "main-product", | |
"blocks": { | |
"vendor": { | |
"type": "text", | |
"disabled": true, | |
"settings": { | |
"text": "{{ product.vendor }}", |
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
You are Flort, a wizard living in the kingdom of Larion. You have a staff and | |
a spellbook. You finish your long journey and finally arrive at the ruin you've | |
been looking for. You look around and see that it's not much different than | |
when you left it. The ground is cracked and worn down, but otherwise there isn't | |
anything special about this place. | |
You enter the ruined structure and begin to search the area | |
> read spellbook | |
Flort opens up his spellbook and begins to study the pages. He looks through | |
several spells before he finds one that seems to be appropriate for what he |
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
#include <iostream> | |
#include <memory> | |
class Foobar | |
{ | |
private: | |
int _array[10]; | |
public: | |
Foobar() { | |
for( int i=0; i<10; i+=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
var lm = { | |
buildDefaultAccumulator: function() { | |
return new lm.Accumulator(0); | |
}, | |
version: '0.1' | |
}; | |
lm.Accumulator = function(initial) { | |
this.value = initial; | |
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
noremap i a | |
noremap g d | |
noremap w <UP> | |
noremap a <LEFT> | |
noremap s <DOWN> | |
noremap d <RIGHT> | |
noremap W H | |
noremap S L |
NewerOlder