Skip to content

Instantly share code, notes, and snippets.

View terbo's full-sized avatar
💭
everybody must get annointed

CB terbo

💭
everybody must get annointed
View GitHub Profile
@terbo
terbo / flows-to-scripts.sh
Created September 28, 2019 14:18
extract code from node-red "function" flows
grep -B1 func\": $FLOWS | sed -e s/^\ *// -e 's/\"func\":\ \"//' -e 's/",$//g' -e 's/\"name\": \"/function /' -e 's/\\n/\n/g'
@terbo
terbo / mpd-mediakeys.ahk
Created August 25, 2019 10:28
Control MPD in Windows with Media Keys and AutoHotKey
Media_Prev::
Run, mpc.exe -h mp3 next,,Hide
return
Media_Next::
Run, mpc.exe -h mp3 prev,,Hide
return
Media_Play_Pause::
Run, mpc.exe -h mp3 toggle,,Hide
return
Volume_Up::
@terbo
terbo / computermap.html
Created January 28, 2017 21:30
tk Computer Map
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="treestyles.css" type="text/css"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!--This file has been created with toxhtml.xsl--><head><meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /><title>The Basics of Computing</title><link rel="stylesheet" href="computermap.html_files/treestyles.css" type="text/css" /><script type="text/javascript" src="computermap.html_files/marktree.js">
</script></head><body><div class="basetop"><a onclick="expandAll(document.getElementById('base'))" href="#">Expand</a> -
<a onclick="collapseAll(document.getElementById('base'))" href="#">Collapse</a></div><div class="basetext" id="base"><ul>
<li class="col" id="FMID_788553103FM"><div class="nodecontent">The Basics of Computing</div>
<ul class="subexp">
<li class="basic" id="FMFreemind_Link_1107948616FM"><div class="nodecontent">What is a Computer?</div></
@terbo
terbo / computermap.mm
Last active January 28, 2017 21:03 — forked from micdillon/index.html
<map version="1.0.1">
<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->
<node CREATED="1485636465327" ID="ID_788553103" MODIFIED="1485636497372" TEXT="The Basics of Computing">
<node CREATED="1241638982000" ID="Freemind_Link_1107948616" MODIFIED="1242279309312" POSITION="right" TEXT="What is a Computer?"/>
<node CREATED="1242279311234" ID="Freemind_Link_534513767" MODIFIED="1242279312171" POSITION="right" TEXT="What is a Personal Computer?"/>
<node CREATED="1241650392906" ID="Freemind_Link_203113429" MODIFIED="1241650393937" POSITION="right" TEXT="The Components of a Personal Computer">
<node CREATED="1241731014093" ID="Freemind_Link_1816054449" MODIFIED="1241731023093" TEXT="Controlling a Computer">
<node CREATED="1241731024109" ID="Freemind_Link_1003207078" MODIFIED="1241731027109" TEXT="The Keyboard">
<node CREATED="1242084788546" ID="Freemind_Link_1087585515" MODIFIED="1242084791343" TEXT="Modifier Keys">
<node CREATED="1242084795312" ID="Freemin
@terbo
terbo / data.json
Last active January 28, 2017 20:57 — forked from jdarling/data.json
D3 MindMap
{
"name": "Root",
"children": [
{
"name": "Branch 1",
"children": [
{"name": "Leaf 3"},
{"name": "Leaf 4"}
]
},
@terbo
terbo / how.py
Created January 25, 2017 08:45
how - the markov bot of the future - original 1999 source
#!/usr/bin/python
# markov chain expression kit v.01
# cbterry 12/28/2015
#
# irc bot based on markovify
#
# TODO: Add IRC Bot module
# Figure out how to load/save json brains
# and compress them on the fly.
#
@terbo
terbo / markovify.py
Created November 22, 2016 23:50
Quick Markov chain from the command line using python/markovify
#!/usr/bin/env python
import sys,markovify
try: print markovify.Text(open(sys.argv[1]).read()).make_short_sentence(60)
@terbo
terbo / .block
Last active November 20, 2016 20:23 — forked from bricedev/index.html
Fibonacci Spiral
license: mit
@terbo
terbo / .block
Last active November 20, 2016 20:36 — forked from emeeks/index.html
d3.touches array data on touch
license: mit
@terbo
terbo / .block
Created November 19, 2016 05:46
fresh block
license: mit