Skip to content

Instantly share code, notes, and snippets.

Veaceslav Cotruta katrotz

Block or report user

Report or block katrotz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:6a66c98c757e4ea95cac142e3c3e4e29
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 Mar 5, 2019 — forked from munificent/generate.c
A random dungeon generator that fits on a business card
View generate.c
#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
View Flash ESP8266
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 Oct 16, 2016
Collection of angular 2 annotations (typescript decorators) written in EcmaScript
View angular-2-typescript-to-ecmascript.md

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>
  `
})
View keybase.md

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:

You can’t perform that action at this time.