Skip to content

Instantly share code, notes, and snippets.

View chart.html
<!doctype html>
<html>
<head>
<title>Line Chart</title>
<script
src="https://cdn.jsdelivr.net/npm/chart.js@2.9.3/dist/Chart.min.js"
></script>
@parke
parke / color.lua
Last active Jun 29, 2020
Xterm color chart generator
View color.lua
local reset = '\027(B\027[m'
function cellx ( prefix_core, text ) ----------------------------- cellx
io .write ( reset )
io .write ( ('\27[%sm') : format ( prefix_core ) )
io .write ( text )
io .write ( reset ) end
@parke
parke / curev.py
Last active Jan 1, 2016
curev.py is a curses event monitor/dumper. It is similar to xev for X11/Xwindows, except it runs in a terminal. I use curev.py to examine what escape sequences various keys generate across various terminals.
View curev.py
import collections, curses, threading
event = threading.Event ()
keys = collections.deque ()
run = threading.Event ()
def reduce ( keys ):
t = []
for n in keys :
if n == 0 : t.append ( '^@' )
You can’t perform that action at this time.