Skip to content

Instantly share code, notes, and snippets.

Avatar

jared shmup

View GitHub Profile
@shmup
shmup / scream.vim
Last active Apr 16, 2020
When intently combing code and comment relevancy, I want 'em to scream
View scream.vim
" scream.vim, so comments stand out when I'm intently combing code
" :SCREAM - Grey100 on IndianRed
" :WHISPER - Apprentice defaults
function! LouderComments() abort
highlight Comment ctermbg=131 ctermfg=231
highlight Todo ctermbg=131 ctermfg=231 cterm=reverse
endfunction
command! SCREAM silent! call LouderComments()
@shmup
shmup / nonymous-ix.vim
Last active Aug 8, 2020
nonymous-ix.vim uses .netrc for auth, and fucks with ix.io
View nonymous-ix.vim
" nonymous-ix.vim uses .netrc for auth, and fucks with ix.io
" insert :IX [optional visual selection] - copies url to system clipboard
" replace :RX <URL> [optional visual selection]
" delete :DX <URL>
if has('win64') || has('win32') || has('win16')
let s:env = 'WINDOWS'
else
let s:env = toupper(substitute(system('uname'), '\n', '', ''))
endif
View isaac.md

finding secret rooms

  1. a room touching 3 other rooms, with no obstacles on the walls (like rocks, spikes, gaps, etc)
  2. a room touching 2 other rooms
  1. cannot border a boss room

NOTE: a small (thinner) room doesn't count as touching: https://i.imgur.com/XN1qn1d.png

NOTE: can technically touch 4 rooms

@shmup
shmup / K.md
Created Oct 8, 2018
search duckduckgo (or google) via vim's keywordprg
View K.md

Search DuckDuckGo (or Google) via vim's keywordprg

This will search DDG or Google (using Firefox) with the filetype+keyword and go to the first result

This is related to :help keywordprg and pressing K on a keyword

Probably you can swap firefox with chrome in the snippets, idk

Put this in your $HOME/.vim/vimrc and swap the commented out line if you don't use vim-dispatch

@shmup
shmup / amfv_decoder.txt
Created May 15, 2018
simulation decoder
View amfv_decoder.txt
Item #603475 Valid March 15-31, 2031
PRISM PROJECT FACILITY
Class One Security Mode Access Decoder
Wheel # |89|61|50|18|29|52|46|77|27|68|22|95|40|58|15|86|28|33|94|11|64|98|34|49|60|16|85|52|37|53|93|91
Dk. Green |73|36|90|41|19|48|62|92|55|23|84|99|57|20|78|67|51|88|17|31|70|39|96|25|81|83|47|54|13|43|12|66
Blue |90|41|19|48|62|92|55|23|84|99|57|20|78|67|51|88|17|31|70|39|96|25|81|83|47|54|13|43|12|66|73|36
Pink |19|48|62|92|55|23|84|99|57|20|78|67|51|88|17|31|70|39|96|25|81|83|47|54|13|43|12|66|73|36|90|41
Orange |62|92|55|23|84|99|57|20|78|67|51|88|17|31|70|39|96|25|81|83|47|54|13|43|12|66|73|36|90|41|19|48
@shmup
shmup / vimclj.md
Last active May 3, 2018
vim prefs for clojure
View vimclj.md

Vim preferences for Clojure

I want to learn Clojure and I don't want to think about a new editor, or a bunch of new mappings

These are my minimum requirements that make me happy

TL;DR

1) install vim 2) install vim-fireplace and vim-cljfmt 3) add some shit to your ~/.lein/profile.clj
@shmup
shmup / dorfs.md
Created Apr 9, 2018
dwarf fortress things
View dorfs.md
@shmup
shmup / install_latest_df_linux.sh
Created Apr 4, 2018
requirements for dwarf fortress
View install_latest_df_linux.sh
# written at the time for Ubuntu 17.10
DF_ROOT_URL="http://www.bay12games.com/dwarves"
FILE_NAME=$(curl --silent http://www.bay12games.com/dwarves/older_versions.html | grep -o 'df_.*linux.tar.bz2' | head -1)
LATEST_DOWNLOAD="$DF_ROOT_URL/$FILE_NAME"
curl -O $LATEST_DOWNLOAD
tar xvfj $FILE_NAME
apt install libsdl1.2debian libsdl-image1.2 libsdl-ttf2.0-0 -f
You can’t perform that action at this time.