Skip to content

Instantly share code, notes, and snippets.

Avatar

Mateusz Łopaciński robopuff

View GitHub Profile
@robopuff
robopuff / paint.go
Last active Dec 12, 2018
Paint image in terminal
View paint.go
package main
import (
"flag"
"fmt"
"image"
"image/color"
_ "image/gif"
_ "image/jpeg"
_ "image/png"
View keybase.md

Keybase proof

I hereby claim:

  • I am robopuff on github.
  • I am robopuff (https://keybase.io/robopuff) on keybase.
  • I have a public key whose fingerprint is 191D A92D CA65 78D9 237D 7BFF 4783 BCC1 2534 8A54

To claim this, I am signing this object:

@robopuff
robopuff / paint
Last active Jun 27, 2018
Draw image in terminal (True Color) with PHP
View paint
#!/usr/bin/env php
<?php
define('VERSION', '1.0.24');
define('DEFAULT_PIXEL', "\xE2\x96\x84");
define('RC', "\e[0m");
define('RCNL', RC . PHP_EOL);
define('CURRENT_FILE', array_shift($argv));
error_reporting(0);
You can’t perform that action at this time.