Important
Run with deno run --allow-run=deno main.ts
(this allows us to run deno
instead of node
in scripts, but prevents any other nefarious scripts)
npm run start
> [email protected] start
> node evil.js
const readline = require("node:readline"); | |
const { Writable } = require("node:stream"); | |
const getPassword = (user) => | |
new Promise((resolve) => { | |
const mutableStdout = new Writable({ | |
write: function (chunk, encoding, callback) { | |
if (!this.muted) process.stdout.write(chunk, encoding); | |
callback(); | |
}, |
#![allow(unused)] | |
fn main() { | |
let example = " | |
MMMSXXMASM | |
MSAMXMSMSA | |
AMXSXMAAMM | |
MSAMASMSMX | |
XMASAMXAMM | |
XXAMMXXAMA |
fn main() { | |
let s = "125 17"; | |
let mut data: Vec<_> = s.split(" ").map(|x| { x.parse::<usize>().unwrap() }).collect(); | |
let mut len = data.len(); | |
// println!("{:?}", data); | |
for _ in (0..).take(75) { | |
// println!("len: {len}"); |
Important
Run with deno run --allow-run=deno main.ts
(this allows us to run deno
instead of node
in scripts, but prevents any other nefarious scripts)
npm run start
> [email protected] start
> node evil.js
#![allow(unused)] | |
use std::collections::{ HashMap, HashSet }; | |
fn main() { | |
let networks = "kh-tc | |
qp-kh | |
de-cg | |
ka-co | |
yn-aq |
#![allow(unused)] | |
use std::collections::{ HashMap, HashSet }; | |
#[derive(Debug)] | |
enum Op { | |
AND, | |
XOR, | |
OR | |
} |