Skip to content

Instantly share code, notes, and snippets.

@jmatth
jmatth / main.dart
Created August 17, 2022 18:27
elegant-cliff-0716
import 'package:flutter/foundation.dart';
void main() async {
final notifier = ValueNotifier<String>('');
var eventCount = 0;
notifier.addListener(() {
switch (eventCount) {
case 0:
print('first');
@jmatth
jmatth / capslock.ahk
Created January 19, 2021 22:08
Capslock to ctrl/esc with AutoHotkey
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
g_LastCtrlKeyDownTime := 0
g_AbortSendEsc := false
g_ControlRepeatDetected := false
*CapsLock::
@jmatth
jmatth / config.json
Created January 23, 2020 15:53
Caddy config for migrating a site with service workers
{
"apps": {
"http": {
"http_port": 80,
"https_port": 443,
"servers": {
"srv0": {
"listen": [
":443"
],
@jmatth
jmatth / windows-userChrome.css
Last active June 8, 2020 16:33
Windows userchrome for FF with tree-style-tabs
/*
* Note: Must enable userChrome.css in about:config first.
* Search for userProf.
*/
#tabbrowser-tabs .tabbrowser-tab {
display: none;
}
#titlebar {
margin-bottom: -34px !important;
@jmatth
jmatth / osx-userChrome.css
Last active April 21, 2021 12:34
Firefox tree-style tabs userChrome.css for MacOS
/*
* Note: Must enable userChrome.css in about:config first.
* Search for userProf.
*/
/* Leave space on the left for OS X window buttons */
#nav-bar {
padding-left: 90px;
}

Program

/usr/bin/termite

Arguments

--exec="/usr/bin/nvim $FilePathRelativeToSourcepath$ +$LineNumber$ -c ALEDisable -c 'call cursor($LineNumber$,$ColumnNumber$)' -c 'norm zz'"

WorkingDirectory

$SourcepathEntry$

@jmatth
jmatth / oneliners.sh
Created August 27, 2018 17:46
Get all one-line commit messages on a branch
git log --shortstat | grep -E '(1 insertion\(.*1 deletion\(|1 insertion\(\+\)$|changed, 1 deletion\(\-\)$)' -B6 | grep '^commit' | cut -d' ' -f2
@jmatth
jmatth / cvim.vim
Created April 14, 2017 18:16
cVim Config
let langmap="hk,jh,kj,HK,JH,KJ"
let hintcharacters="arstdhneio"
set smoothscroll
let blacklists = ["https://inbox.google.com/*","https://docs.google.com/*","http://www.keybr.com/*","https://checkvist.com/*","https://cloud-qa.mongodb.com/*","http://app.typrx.com/*","https://cloud.mongodb.com/*","https://coderpad.io/*","http://homebrewery.naturalcrit.com/*","https://play.google.com/*","https://app.youneedabudget.com/*","https://www.wanikani.com/*","https://www.discovercard.com/*"]
@jmatth
jmatth / colemaktable.txt
Created February 25, 2017 04:00
Colemak romanji table for Google IME
- ー
~ 〜
. 。
, 、
z/ ・
z. …
z, ‥
zh ←
zy ↓
zn ↑
@jmatth
jmatth / keybase.md
Created September 6, 2016 14:44
Yay keybase alpha

Keybase proof

I hereby claim:

  • I am jmatth on github.
  • I am jmatth (https://keybase.io/jmatth) on keybase.
  • I have a public key ASAz63lCwaEGMphFlZYfKsXqpzWD07MPArHiNQwP5EEoXQo

To claim this, I am signing this object: