This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Configuration for Alacritty, the GPU enhanced terminal emulator | |
# The FreeType rasterizer needs to know the device DPI for best results | |
# (changes require restart) | |
dpi: | |
x: 96.0 | |
y: 96.0 | |
# Display tabs using this many cells (changes require restart) | |
tabspaces: 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script> | |
alert("hello, shortcuts"); | |
</script> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## React Native pre-push hook | |
## -------------------------- | |
## Requires: | |
## - concurrently from npm | |
## - assumes you have test:ios and test:android tasks setup for any native unit tests | |
remote="$1" | |
url="$2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; jest-mode.el -- test runner / feedback for jest | |
;;; Commentary: | |
;;; This is alpha, it does only what the author needed it to do. | |
;;; Please PR if you want to extend or fix something! | |
;;; Based this off of rspec-mode | |
;;; Code: | |
(require 'compile) | |
(require 'json) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var events = []; | |
function HandleMIDI(event) { | |
event.trace(); | |
events.push(event); | |
if (events.length === 2 && events[1].pitch !== 74) { | |
schedulePattern(events); | |
events = []; | |
} else if (events.length === 3) { | |
schedulePatternB(events); | |
events = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var events = []; | |
function HandleMIDI(event) { | |
event.trace(); | |
events.push(event); | |
if (events.length === 4) { | |
schedulePattern(events); | |
events = []; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Nce(max, Component) { | |
var n = 0; | |
return class extends React.Component { | |
constructor(props) { | |
super(props); | |
n += 1; | |
this.n = n; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fzf default command | |
# prefer git ls-tree/ls-files, then ag, then find if needed | |
# cat'ing ls-tree and ls-files because ls-tree doesn't know about | |
# untracked files | |
export FZF_DEFAULT_COMMAND=' | |
({ git ls-tree -r --name-only HEAD ; git ls-files . --exclude-standard --others } || | |
ag -g "" --ignore node_modules || | |
find . -path "*/\.*" -prune -o -type f -print -o -type l -print | | |
sed s/^..//) 2> /dev/null' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying I am +bradspaulding on my passcard. https://onename.com/bradspaulding |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function transpose(originalNote, steps) { | |
var note = new originalNote.constructor(); | |
note.pitch = originalNote.pitch + steps; | |
note.velocity = originalNote.velocity; | |
return note; | |
} | |
function octaveUp() { | |
return true; | |
} |