Mercurial > repo
annotate bin/morse-decode @ 8509:272663b31668
<b_jonas> slashlearn block device/Block devices are a concession made in Unix to make raw hard disks and magnetic tape have a similar interface to regular files and terminals. Since magnetic tapes can\'t write individual bytes, only entire blocks, the interface isn\'t exactly the same, thus the dreaded dd obs= option was born.
author | HackBot |
---|---|
date | Fri, 17 Jun 2016 08:35:50 +0000 |
parents | e6034d3b6841 |
children | 6fae3200f233 |
rev | line source |
---|---|
4683
e6034d3b6841
<FireFly> ` gcc -x c -o bin/morse-decode - <<<\'c, v = 1; main() { while (c = getchar(), ~c) v = c < 33? putchar("& etianmsurwdkgohvf.l.pjbxcyzq..54.3.;!2).+...,16=/:..(.7.?_8.9o\\"...$...@...\'\\\'\'..-"[v < 64? (v != 40)*v : v % 51 + 33]), 1 : v * 2 + c % 2; }\'
HackBot
parents:
diff
changeset
|
1 (binary:application/octet-stream) |