Skip to content

Instantly share code, notes, and snippets.

View EtherTyper's full-sized avatar

ELI JOSEPH BRADLEY EtherTyper

  • Private Proxy
View GitHub Profile
@fnky
fnky / ANSI.md
Last active December 30, 2025 04:50
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
//
// Author: Jonathan Blow
// Version: 1
// Date: 31 August, 2018
//
// This code is released under the MIT license, which you can find at
//
// https://opensource.org/licenses/MIT
//
//
anonymous
anonymous / JnYY-0.js
Created July 28, 2017 19:57
null created by anonymous - https://repl.it/JnYY/0
const i = {};
i.i = i;
console.log(i);
function I() {
this.i = this;
}
const functionI = new I();
console.log(functionI);
@notjuliee
notjuliee / nosteponcss.js
Created May 8, 2017 03:41
No step on CSS
// ==UserScript==
// @name RedaddCSS
// @namespace com.digitalfishfun.nosteponcss
// @version 1
// @grant none
// @include https://reddit.com/r/*
// ==/UserScript==
const nosteponcss_instructions = `
USAGE:
# data from http://ec.europa.eu/eurostat/web/gisco/geodata/reference-data/population-distribution-demography/geostat
# Originally seen at http://spatial.ly/2014/08/population-lines/
# So, this blew up on both Reddit and Twitter. Two bugs fixed (southern Spain was a mess,
# and some countries where missing -- measure twice, submit once, damnit), and two silly superflous lines removed after
# @hadleywickham pointed that out. Also, switched from geom_segment to geom_line.
# The result of the code below can be seen at http://imgur.com/ob8c8ph
library(tidyverse)
@hediet
hediet / main.md
Last active December 27, 2025 05:32
Proof that TypeScript's Type System is Turing Complete
type StringBool = "true"|"false";


interface AnyNumber { prev?: any, isZero: StringBool };
interface PositiveNumber { prev: any, isZero: "false" };

type IsZero<TNumber extends AnyNumber> = TNumber["isZero"];
type Next<TNumber extends AnyNumber> = { prev: TNumber, isZero: "false" };
type Prev<TNumber extends PositiveNumber> = TNumber["prev"];
@nicowilliams
nicowilliams / fork-is-evil-vfork-is-good-afork-would-be-better.md
Last active December 2, 2025 05:20
fork() is evil; vfork() is goodness; afork() would be better; clone() is stupid

I recently happened upon a very interesting implementation of popen() (different API, same idea) called popen-noshell using clone(2), and so I opened an issue requesting use of vfork(2) or posix_spawn() for portability. It turns out that on Linux there's an important advantage to using clone(2). I think I should capture the things I wrote there in a better place. A gist, a blog, whatever.

This is not a paper. I assume reader familiarity with fork() in particular and Unix in general, though, of course, I link to relevant wiki pages, so if the unfamiliar reader is willing to go down the rabbit hole, they should be able to come ou

@EtherTyper
EtherTyper / README.md
Last active August 5, 2016 15:04
Langton's Ant for Python Turtle. (http://pythonturtle.org)

Langton's Ant for Python Turtle

Extending the bounds, here is what you get:

#include <iostream>
#include <cstring>
#define MAX_LETTERS 600005
#define ALPHABET_SIZE 26
using namespace std;
// These two structures should be intiialized to all 0
// (0 is the root and should never be the child of another node)
int trie[MAX_LETTERS][ALPHABET_SIZE];
@EtherTyper
EtherTyper / Atlas-index.html
Last active February 2, 2016 13:26
JScrambled debium/www components
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="Naut.css">
<title>Atlas V is Go, and Ethereum in Practice</title>
</head>