Skip to content

Instantly share code, notes, and snippets.

View translit.js
let map = {
"а": "a", "б": "b", "в": "v", "г": "h", "ґ": "g",
"д": "d", "е": "e", "є": "ie", "ж": "zh", "з": "z",
"и": "y", "і": "i", "ї": "i", "й": "i", "к": "k",
"л": "l", "м": "m", "н": "n", "о": "o", "п": "p",
"р": "r", "с": "s", "т": "t", "у": "u", "ф": "f",
"х": "kh", "ц": "ts", "ч": "ch", "ш": "sh", "щ": "shch",
"ю": "iu", "я": "ia",
"А": "A", "Б": "B", "В": "V", "Г": "H", "Ґ": "G",
"Д": "D", "Е": "E", "Є": "Ye", "Ж": "ZH", "З": "Z",
View how-to-get-external-ip.txt
nslookup -q=TXT
dig -4 TXT +short
dig -4 A +short
dig -4 A +short
curl -s
View deus_ex_codes.txt
тренировка: (нужно взламывать), 0012
тренировка(возле робота): 0089
к складу на улице возле юнатко: 0451
дверь возле Алекса в юнатко: 2001
беттери парк: к "чёрному ходу":9183, к "парадному": 666
код к комнате с аугом: 6549
код к двери за туннелями: 3316
клиника, к медботу: 2153
View oneshot-naive.tsx
import * as React from 'react';
import * as ReactDOM from 'react-dom';
const getThings = (): Promise<Array<string>> => new Promise((resolve) => {
setTimeout(() => resolve(['a', 'b', 'c']), 500);
interface AppState {
loading: boolean;
things: Array<string>;
id = 8772
def powl(id, x,y):
return (((x+10)*y+id)*(x+10) // 100) % 10 - 5
grid = [0]*(300*300)
for y0 in range(300):
for x0 in range(300):
c = x0 + y0*300
grid[c] = powl(id, x0+1,y0+1)

Win-R <thing> to open these folders quickly:

  • shell:AccountPictures%AppData%\Microsoft\Windows\AccountPictures
  • shell:AddNewProgramsFolderControl Panel\All Control Panel Items\Get Programs
  • shell:Administrative Tools%AppData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools
  • shell:AppData%AppData%
  • shell:Application Shortcuts%LocalAppData%\Microsoft\Windows\Application Shortcuts
  • shell:AppsFolderApplications
  • shell:AppUpdatesFolderInstalled Updates
  • shell:Cache%LocalAppData%\Microsoft\Windows\INetCache
use std::time::{Instant};
use std::fs::{File};
use std::io::{Read};
fn react<I: Iterator<Item=u8>>(iter: I) -> Vec<u8> {
let mut output = Vec::<u8>::with_capacity(50000);
for c in iter {
if output.last().cloned() == Some(c^0x20) {
} else if c > 0x20 {
m1el /
Last active Nov 6, 2018
Diablo Immortal, or How to Read a Room

Diablo Immortal, or How to Read a Room

By schild 2018-11-04T03:55:32.896Z

All @s in this pile of puke refer to Twitter handles. I’m not linking them because you can find them yourself. Also, apologies for the gibberish. I’m not going to edit this because I care only marginally more about writing this than Blizzard does about the Diablo franchise.

View Cargo.toml
name = "round"
version = "0.1.0"
authors = ["Igor null <>"]
libm = "0.1.2"
name = "round-bench"