Skip to content

Instantly share code, notes, and snippets.

View jryio's full-sized avatar
☠️
Test your code

Jacob (JRY) jryio

☠️
Test your code
  • New York
  • 09:45 (UTC -04:00)
View GitHub Profile
@jryio
jryio / Prepend YAML Front Matter to Markdown Files
Last active July 12, 2023 12:06
Adding YAML front matter to markdown files (title)
# For each result of find call our script to run on the filename
$ find . -name "*.md" -print0 | xargs -0 -I file ./prepend.sh file
@jryio
jryio / remove-non-gdoc-files.sh
Created July 11, 2016 19:01
For migrating from Google Drive to another service, delete all files from Google Drive which are not Google Doc or Google Sheet files.
find . -type f \! \( -name "*.gdoc" -o -name "*.gsheet" \) -print -exec rm -rf {} +
@jryio
jryio / LICENSE
Last active August 25, 2018 01:19
Disable All Retweets on Twitter
MIT License
Copyright (c) 2018 Jacob Young
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
" Use <cr> to confirm completion, `<C-g>u` means break undo chain at current position.
" Coc only does snippet and additional edit on confirm.
inoremap <expr> <cr> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>"
" Use `[g` and `]g` to navigate diagnostics
nmap <silent> [g <Plug>(coc-diagnostic-prev)
@jryio
jryio / Cargo.toml
Last active August 21, 2023 18:05
Recurse - Tic Tac Toe - Jacob Young
[package]
name = "recurse-tic-tac-toe"
version = "0.1.0"
edition = "2021"
authors = ["Jacob Young <[email protected]>"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "tictactoe"