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 cloudflare-hipocricy.md
View how-to-get-external-ip.txt
nslookup -q=TXT o-o.myaddr.l.google.com. ns1.google.com.
dig -4 TXT +short o-o.myaddr.l.google.com. @ns1.google.com.
nslookup myip.opendns.com. resolver1.opendns.com.
dig -4 A +short myip.opendns.com. @resolver1.opendns.com.
nslookup whoami.akamai.net. ns1-1.akamaitech.net.
dig -4 A +short whoami.akamai.net. @ns1-1.akamaitech.net.
curl -s https://api.ipify.org
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>;
View d11.py
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)
View windows-shell-command.md

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
View 2018-day05.rs
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) {
output.pop();
} else if c > 0x20 {
@m1el
m1el / how-to-fuckyou-medium.md
Last active Nov 6, 2018
Diablo Immortal, or How to Read a Room
View how-to-fuckyou-medium.md

https://medium.com/@schild_23338/diablo-immortal-or-how-to-read-a-room-eb2484934c34

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
[package]
name = "round"
version = "0.1.0"
authors = ["Igor null <m1el.2027@gmail.com>"]
[dependencies]
libm = "0.1.2"
[[bin]]
name = "round-bench"