Skip to content

Instantly share code, notes, and snippets.

@sw1sh
sw1sh / clt.ipynb
Created February 11, 2019 17:32
CLT.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Поздравляю, вы попали туда куда надо! Следущую подсказку ищите в книжке с картинками мышц, мозгов и другого человеческого мяса.
b=(♜ ♞ ♝ ♛ ♚ ♝ ♞ ♜ ♟ ♟ ♟ ♟ ♟ ♟ ♟ ♟)
for i in {16..47};{ b[$i]=' ';}
b+=(♙ ♙ ♙ ♙ ♙ ♙ ♙ ♙ ♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖)
n=(a b c d e f g h)
f()(echo $(($(printf '%d' "'$1")-97)))
while read l
do
read -a m<<<$l
x=$(($(f ${m[0]:0:1})+8*(8-${m[0]:1})))
y=$(($(f ${m[1]:0:1})+8*(8-${m[1]:1})))
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 11.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am sw1sh on github.
  • I am sw1sh (https://keybase.io/sw1sh) on keybase.
  • I have a public key ASDmQiqYWMQJztzE56DaBPrj02rWYNhq-EBYHcsl_Q8Gwgo

To claim this, I am signing this object:

hex = BarcodeRecognize[ImageCrop[#, {128, Full}]] & /@
ImagePartition[Import["http://wiki.gamedetectives.net/images/b/b3/Sombra_Barcodes.png"], {Scaled[1/9], Scaled[1]}][[1]]
binary = MapIndexed[{square, i} \[Function]
IntegerDigits[FromDigits[StringTrim@#, 16], 2,
If[i[[1]]~Divisible~3, 13, 12]] & /@ square
, StringSplit[#, "-"] & /@ hex
]
barcode = ImageAssemble@Partition[ArrayPlot[#, Frame -> None] & /@ binary, 3]
message = BarcodeRecognize@barcode
@sw1sh
sw1sh / README.md
Last active December 26, 2015 01:39
Susceptibility