Skip to content

Instantly share code, notes, and snippets.

View shalzz's full-sized avatar
🦀

Shaleen Jain shalzz

🦀
View GitHub Profile
vim ~/.ctags
--langdef=Solidity
--langmap=Solidity:.sol
--regex-Solidity=/^contract[ \t]+([a-zA-Z0-9_]+)/\1/c,contract/
--regex-Solidity=/[ \t]*function[ \t]+([a-zA-Z0-9_]+)/\1/f,function/
--regex-Solidity=/[ \t]*event[ \t]+([a-zA-Z0-9_]+)/\1/e,event/
--regex-Solidity=/[ \t]*(struct[ \t]+[a-zA-Z0-9_]+)([ \t]*\{)/\1/v,variable/
--regex-Solidity=/[ \t]*(enum[ \t]+[a-zA-Z0-9_]+)([ \t]*\{)/\1/v,variable/
--regex-Solidity=/[ \t]*mapping[ \t]+\(([a-zA-Z0-9_]+)[ \t]*=>[ \t]*([a-zA-Z0-9_]+)\)[ \t]+([a-zA-Z0-9_]+)/\3 (\1=>\2)/m,mapping/
@geophree
geophree / install.py
Last active June 14, 2018 16:42
Build Graveyard Keeper directory structure from installer on linux
#!/usr/bin/env python3
# Big thanks to @TechnicianLP for the inspiration! See https://gist.github.com/TechnicianLP/5882de4075b6ed3700bba2bbc310e616
# This script builds the Graveyard Keeper directory/file tree using the .msi installer db.
# NOTE: Before running this script:
# Install wine (GK works for me with 3.9, probably needs at least 3.0)
# unzip the installer, then run:
# wine installer_filename.exe /extract