I hereby claim:
- I am stefreak on github.
- I am stefreak (https://keybase.io/stefreak) on keybase.
- I have a public key ASCyBWYn67yROQ-uDymTUyCeK5wos1t6zMLEwA3J0W3S8Ao
To claim this, I am signing this object:
| #! /bin/sh | |
| set -e | |
| # Print our lovely banner image | |
| echo "[0;40;36m[48;2;35;163;116m [48;2;30m[48;2;67;136;127m [36m[48;2;92;207;254m [42m[48;2;35;163;116m [1m[48;2;91;253;255m [0m[48;2;104;188;83m [48;2;30m[48;2;63;132;75m [0;36m[48;2;38;87;111m [1m[48;2;91;253;255m [30m[48;2;44;91;85m [0;36m[48;2;45;161;133m [48;2;30m[48;2;69;125;127m [48;2;52;106;90m [0;34m[48;2;31;69;124m [48;2;30m[48;2;62;129;73m [0;36m[48;2;15;91;163m [48;2;30m[48;2;65;133;125m [0;36m[48;2;35;163;116m [48;2;30m[48;2;76;124;98m [48;2;52;106;90m [48;2;69;125;127m [0;36m[48;2;36;78;92m [48;2;30m[48;2;52;106;90m [48;2;69;125;127m [48;2;62;129;73m [48;2;52;106;90m [0;32m[48;2;42;184;93m [0;36m[48;2;15;91;163m [48;2;34;157;187m [1m[48;2;116;251;192m [0;36m[48;2;36;77;91m [32m[48;2;56;156;96m [36m[48;2;34;157;187m [48;2;36;77;91m [1m[48;2;116;251;192m [0;32m[48;2;56;156;96m[0m | |
| [36m[48;2;35;163;116m [48;2;30m[48;2;67;136;127m [36m[48;2;9 |
I hereby claim:
To claim this, I am signing this object:
| import signal | |
| import logging | |
| import time | |
| import sys | |
| from contextlib import contextmanager | |
| from typing import Callable | |
| LOG = logging.getLogger(__name__) |
| #define X 1 | |
| #define Y 0 | |
| #define GAMESTATE_NORMAL 0 | |
| #define GAMESTATE_GAMEOVER 1 | |
| int soundPin = 4; | |
| int rowPins[8] = { | |
| 9,22,18,12,15,11,7,6}; // matrix rows connected to the Arduino |
| int rowPins[8] = { | |
| 9,22,18,12,15,11,7,8}; // matrix rows connected to the Arduino | |
| int colPins[8] = { | |
| 13,8,17,10,5,16,19,14}; // matrix columns connected to the Arduino | |
| int image[8][8]={ // the image displayed on the matrix : 1 = LED on, 0 = LED off | |
| {1 , 1 , 1 , 1 , 1 , 1 , 1 , 1 }, | |
| {2 , 2 , 2 , 2 , 2 , 2 , 2 , 2 }, |
| #!/bin/bash | |
| if [ $(ip route list exact default |\ | |
| awk '/^default/ {print $2}') = dev ]; | |
| then | |
| IF=$(ip route | awk '/^default/ {print $3}') | |
| GW=$(ip address show $IF |\ | |
| awk '/peer/ {print $4}' | cut -d"/" -f1) | |
| ip route replace default via $GW dev $IF | |
| fi |