Skip to content

Instantly share code, notes, and snippets.

View katrotz's full-sized avatar

Veaceslav Cotruta katrotz

  • Klarna Bank AB
  • Germany
View GitHub Profile
<html>
<script type="text/javascript">
var parentWindow = window.parent;
console.log(parentWindow);
</script>
</html>
const HEIGHT = 40;
const WIDTH = 80;
const map = [];
const PLAYER = '@';
const TREASURE = '$';
const ROCK = ' ';
const CORNER = '!';
const WALL = '#';
const FLOOR = '.';
@katrotz
katrotz / generate.c
Created March 5, 2019 21:33 — forked from munificent/generate.c
A random dungeon generator that fits on a business card
#include <time.h> // Robert Nystrom
#include <stdio.h> // @munificentbob
#include <stdlib.h> // for Ginny
#define r return // 2008-2019
#define l(a, b, c, d) for (i y=a;y\
<b; y++) for (int x = c; x < d; x++)
typedef int i;const i H=40;const i W
=80;i m[40][80];i g(i x){r rand()%x;
}void cave(i s){i w=g(10)+5;i h=g(6)
+3;i t=g(W-w-2)+1;i u=g(H-h-2)+1;l(u
Connect Lolin via FTD1232:
D3 > G
RX > TX (FTD1232)
TX > RX (FTD1232)
G > G (FTD1232)
Use NodeMCU USB power conection
1. Erase the current flash
```esptool.py --port /dev/tty.usbserial-00000000 --baud 115200 erase_flash```
@katrotz
katrotz / angular-2-typescript-to-ecmascript.md
Last active October 16, 2016 16:09
Collection of angular 2 annotations (typescript decorators) written in EcmaScript

TYPESCRIPT

@Component({
  selector: 'cmp',
  template: `
    <h1>"Anything less than immortality is a complete waste of time" (c)Bender</h1>
    <p>Cmp input: {{cmpInput}}</p>
    <p>Aliased input: {{aliasedInputName}}</p>
  `
})

Keybase proof

I hereby claim:

  • I am katrotz on github.
  • I am katrotz (https://keybase.io/katrotz) on keybase.
  • I have a public key whose fingerprint is AD96 D5E1 CA08 25AB F3A8 E917 4F22 AFD6 1A5D 712D

To claim this, I am signing this object: