Skip to content

Instantly share code, notes, and snippets.

View kristopherjohnson's full-sized avatar
💭
Huh?

Kristopher Johnson kristopherjohnson

💭
Huh?
View GitHub Profile
@kristopherjohnson
kristopherjohnson / Makefile
Created February 22, 2022 23:51 — forked from MLKrisJohnson/Makefile
Makefile for processing Mermaid files in the current directory
# Makefile for Mermaid files in this directory
#
# `make all` - build all targets
# `make png` - build PNGs for all source files
# `make svg` - build SVGs for all source files
# `make pdf` - build PDFs for all source files
# `make clean` - delete all targets
# `make listsources` - print list of all files to be processed
# `make listtargets` - print list of all output files
@kristopherjohnson
kristopherjohnson / Makefile
Created August 9, 2020 19:14 — forked from MLKrisJohnson/Makefile
Makefile that runs GraphViz Dot utility on all *.gv files in the current directory
# Makefile for GraphViz files in this directory
#
# `make all` - build all targets
# `make clean` - delete all targets
# `make listtargets` - print list of all targets
# `brew install graphviz`, or download from <http://graphviz.org/download/>
# to get the `dot` utility.
DOT?=dot
@kristopherjohnson
kristopherjohnson / Set Terminal Background Colors.applescript
Created December 12, 2019 00:21 — forked from MLKrisJohnson/Set Terminal Background Colors.applescript
AppleScript that sets background colors of terminal windows to different colors, for easier identification
-- Set background colors of terminal windows to different colors, for easier identification
tell application "Terminal"
set window_colors to {¬
{8192, 0, 0}, ¬
{0, 8192, 0}, ¬
{0, 0, 8192}, ¬
{4096, 4096, 0}, ¬
{0, 4096, 4096}, ¬
{4096, 0, 4096}, ¬
@kristopherjohnson
kristopherjohnson / 0_reuse_code.js
Created April 3, 2014 13:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011
* http://benalman.com/
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
(function($) {
var o = $({});
$.subscribe = function() {
o.on.apply(o, arguments);