Skip to content

Instantly share code, notes, and snippets.

View EteimZ's full-sized avatar

Youdiowei Eteimorde EteimZ

View GitHub Profile
@iamnewton
iamnewton / bash-colors.md
Last active April 6, 2026 07:02
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@tedmiston
tedmiston / nodejs-tcp-example.js
Last active April 7, 2026 15:41
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
@gphan
gphan / GameOfLife.js
Created December 21, 2012 22:41
A simple implementation of Conway's Game Of Life in JavaScript and HTML5 Canvas
/* http://jsfiddle.net/4YuZp/ */
/*
<h1>Conway's Game of Life</h1>
<canvas id="screen" width="300px" height="300px">
</canvas>
<form>
<div>
<label for="chanceOfLife">% of Alive</label>
<input id="chanceOfLife" type="text" value="5"/>
<input id="random" type="button" value="Randomize" />