Skip to content

Instantly share code, notes, and snippets.

View crystalline's full-sized avatar
💎
existing

Emerald crystalline

💎
existing
View GitHub Profile
@crystalline
crystalline / test_compose_perf.html
Created April 16, 2019 23:54
A comparison of redux's compose higher order function and a simple imperative implementation on a synthetic benchmark (results: as of 2019 the imperative implementation is 3-5 times faster)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Compose performance benchmark</title>
</head>
<body onload="run();">
<script>
@crystalline
crystalline / 3dpexec.py
Last active June 16, 2018 18:11
A tool to run G-CODE file on marlin-compatible (repetier, etc) 3d-printers
#!/usr/bin/env python2.7
import serial
import time
import sys
from datetime import datetime
import os
import argparse
def heuristicallyFindSerPort():
@crystalline
crystalline / irc.js
Created July 25, 2017 22:54
A basic irc client/bot in node.js
var pr = console.log;
var net = require('net');
var readline = require('readline');
//Simple IRC client
function IRC(ip, port, nick, room, debug) {
this.ip = ip;