Skip to content

Instantly share code, notes, and snippets.

@hagure
hagure / mvc2unlock.md
Last active September 24, 2023 09:13
#MvC2 Arcade Unlock Codes #arcade #mvc2 #naomi

Key

🔑 value
LP Light Punch
HP Heavy Punch
LK Light Kick
HK Heavy Kick
A1 Assist 1
A2 Assist 2
@hagure
hagure / trim-image.sh
Last active January 2, 2023 23:33
[Trim Images with ImageMagick] Trim extra space around images with imagemagick. Takes in an image.ext as input, & outputs image-trimmed.ext as output. See example here: https://twitter.com/hagure/status/1610056235826696192 #imagemagick #bash #shell
#!/bin/bash
# REQUIRES [IMAGEMAGICK](http://imagemagick.org)
# brew install imagemagick
# Get the path to the file
thefilepath=$(dirname "$1")
# Get the file's name
thefilename=$(basename "$1")
@hagure
hagure / snippet.script
Last active October 5, 2020 16:37
[Get First Name of MailMate Recipient] Snippet uses Applescript to go into MailMate & get the first name of the Receiver (To) in the frontmost window. Useful for TextExpander Snippets. #applescript #textexpander
tell application "System Events"
tell process "MailMate"
tell text field 1 of splitter group 1 of window 1
if UI element 1 exists then
set theToRecipient to (value of UI element 1)
if (count words of theToRecipient) is greater than 0 then return word 1 of theToRecipient
end if
end tell
end tell
end tell
@hagure
hagure / pinboard.user.js
Last active October 12, 2018 18:10
Pinboard - Change Title of Tab Set pages to the name of the Tab Set #pinboard #userscript
// ==UserScript==
// @name Pinboard - Change Tab Sets Titles to Name of Set
// @namespace https://terrymccall.info
// @version 1.0
// @description Instead of "Pinboard: Tab Detail", it shows the title of the Tab Set
// @author Hagure
// @match https://pinboard.in/u:*/tabs/*/
// @grant none
// ==/UserScript==
@hagure
hagure / EVO2018-suites.md
Last active July 18, 2018 03:02
List of open suites at EVO 2018
@hagure
hagure / PotSplit.soulver
Last active July 12, 2018 19:17
Soulver document to quickly calculate pot splits for tournaments.
// Formatted for use by [Soulver](http://www.acqualia.com/soulver/)
// Tourney Info
Entrants =22
EntryFee= $5
Bonus = 0
Pot = EntryFee × Entrants + Bonus
// Pot Split Breakdown (e.g. 70/20/10)
FirstSplit= .7
@hagure
hagure / FGC Majors 2014
Created February 6, 2014 01:53
FGC Majors 2014
# SCR
- [REGISTER](http://www.socalregionals.com/?page_id=6): 2/16 \$35V+\$10/G
- WHEN: 2/28(F)–3/2(S)
- [HOTEL](http://www.socalregionals.com/?page_id=21)
- [FLIGHTS]
# ECCT