Skip to content

Instantly share code, notes, and snippets.

shmug shmup

Block or report user

Report or block shmup

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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
@shmup
shmup / using_z_in_vim.md
Created Apr 2, 2018
How to use rupa/z in vim
View using_z_in_vim.md

This allows you to use the directory changing functionality of z within vim.

This does assume you use z otherwise, because you will need the data (list of directories and their frecency).

TODO

@shmup
shmup / vim_plugins.md
Last active Feb 14, 2018
which plugins i use and why
View vim_plugins.md

here's me briefly (or otherwise) describing each plugin i use

maybe this will make me use less plugins

TODO

  • i want to actually just explain some mappings i use in general, for vanilla vim shit, that is not related to plugins.

  • also maybe explain some more mappings i've added that leverage these plugins.

You can’t perform that action at this time.