Skip to content

Instantly share code, notes, and snippets.

Avatar

Jason Milkins jasonm23

View GitHub Profile
View FakeKey.swift
//
// FakeKeyEvents.swift
// CutBox
//
// Created by Jason Milkins on 26/3/18.
// Copyright © 2019-2020 ocodo. All rights reserved.
//
import Foundation
import Carbon
View Handy one-liners for SED.markdown
@jasonm23
jasonm23 / ibm-box-drawing-hydra.el
Last active Dec 6, 2020
Draw DOS style boxes in Emacs with a hydra
View ibm-box-drawing-hydra.el
;;; ibm-box-drawing-hydra --- draw DOS style boxes with a hydra
;;; Commentary:
;; Use M-x load-library ibm-box-drawing-hydra (after placing this file in the Emacs lisp load-path)
;; Draw box with IBM single line box characters. - activate with C-x d
;;
;; Press Esc to exit.
;;
;; Essentially treats the left hand on a QWERTY layout
@jasonm23
jasonm23 / xterm-256color.svg
Last active Nov 19, 2020
Xterm 256color mode color chart, organised into sections.
View xterm-256color.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jasonm23
jasonm23 / README.md
Last active Sep 10, 2020 — forked from hamann/gist:39371c46806e14ab3853
Elixir mix oh-my-zsh completion plugin
View README.md

Elixir Mix Oh-My-Zsh plugin

Copy the folder ./elixir_mix/ to ~/.oh-my-zsh/custom/plugins/ and add _elixir_mix to your .zshrc plugins list. e.g.

Example:

plugins=(
  autojump
  git
@jasonm23
jasonm23 / sparklist.rb
Created May 28, 2010
Spark project AS3 library list
View sparklist.rb

Spark project AS3 library list

Graphics/Color (AS3)

@jasonm23
jasonm23 / Pad Fixer.md
Last active May 16, 2020
SysEx for Behringer Motör 49 - Drum Pads - Aligned to C1..D#2 (Pads 17-32 repeat C1..D#2)
View Pad Fixer.md

Pad Fixer.syx file can be sent to a Behringer Motör 49 (and perhaps to other size models too?)

It will set the 8 drum pads to be lined up with C1 .. D#2

Use a SysEx librarian e.g. https://www.snoize.com/SysExLibrarian/docs.html on Mac.

View aperture_logo.txt
.,-:;//;:=,
. :H@@@MM@M#H/.,+%;,
,/X+ +M@@M@MM%=,-%HMMM@X/,
-+@MM; $M@@MH+-,;XMMMM@MMMM@+-
;@M@@M- XM@X;. -+XXXXXHHH@M@M#@/.
,%MM@@MH ,@%= .---=-=:=,.
=@#@@@MX., -%HX$$%%%:;
=-./@M@M$ .;@MMMM@MM:
X@/ -$MM/ . +MM@@@M$
,@M@H: :@: . =X#@@@@-
@jasonm23
jasonm23 / template-theme.el
Created Jan 14, 2013
A very basic Emacs 24 deftheme template, just to show the main blocks to use.
View template-theme.el
;;; Filename: name-theme.el
(deftheme name
"DOCSTRING")
;; Not a bad idea to define a palette...
(let (
(color-1 "#ffffff")
(color-2 "#ff0000")
(color-3 "#00ff00")
(color-4 "#0000ff"))
@jasonm23
jasonm23 / magit-duet-commit.el
Created Apr 1, 2017
Use Magit and Emacs with git-duet (Just a basic commit feature)
View magit-duet-commit.el
(require 'dash)
(defvar magit-duet--default-commit-popup-actions nil
"Store the magit-commit-popup here for
de-initializing. magit-duet-commit")
(defun magit-duet-commit (&optional args)
"Create a new duet commit"
(interactive (if current-prefix-arg
(list (cons "--amend" (magit-commit-arguments)))