Skip to content

Instantly share code, notes, and snippets.

@madewokherd
madewokherd / gist:2725100
Created May 18, 2012 12:51
List of proejcts I plan to package for coapp
List of projects I'm planning to package, in order:
gtk+ - needs perl package to build pixman
aisleriot - needs gtk+, and a solution for standard libraries containing directories (for guile)
python - need a solution for standard libraries containing directories
pygtk - needs gtk+ and python
urk - needs pygtk
gedit - needs gtk+
glade - needs gtk+
sdl
@madewokherd
madewokherd / codetimer.py
Created July 4, 2012 21:47
poor man's python profiler
import time
class CodeTimer(object):
def __init__(self):
self.level = 0
self.time = 0
def __enter__(self):
self.level += 1
if self.level == 1:
/*
* WIC image conversion test program
*
* Copyright (c) 2012 Vincent Povirk for CodeWeavers
*
* 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
@madewokherd
madewokherd / gist:51858cdbd21385d08cfa
Created October 25, 2015 15:47
ahk hotkey to show information about the active window
DetectHiddenWindows, On
#f::
WinGet, ID, ID, A
WinGet, ProcessName, ProcessName, ahk_id %ID%
WinGet, PID, PID, ahk_id %ID%
WinGetTitle, Title, ahk_id %ID%
WinGetClass, Class, ahk_id %ID%
MsgBox, Process Name: %ProcessName%`nProcess ID: %PID%`nHWND: %ID%`nTitle: %Title%`nClass: %Class%
return
@madewokherd
madewokherd / scores.md
Last active July 18, 2016 00:51
infinifactory scores
Puzzle Scores Categories Most Advanced Block Used InputRate Solution (in source)
Training Routine 1 44/53/43 Naive, Cycles, Rate-independent Conveyor 1
Training Routine 1 42/98/104 Cycles Conduit 1 [](AwAAAG8AAAABAP//AwD8/wIAABIAAAADAPz/AwAAAQABAAEA9/
OST: Aquatic Ambiance
OCR: Relics of an Ancient Race
OST: Kefka
OCR: Gusty Piano in a Garden
Covers: Clocktown (Time's End)
OST: Battle Scene 1 - arrange - Final Fantasy II
OST: Robo's Theme
OST: Redemption (Beyond Good & Evil)
OCR: Bionic Electronica
OCR: Femmes Fatales
@madewokherd
madewokherd / gw2pw.py
Last active October 2, 2017 04:08
Gargoyle's Quest 2 (GB) password generation
#!/usr/bin/env python
jump_level = 4 # FFD4: 0-4
health_level = 4 # FFE0: 0-4
wing_level = 4 # FFD8: 0-4
magic_types = 4 # FFD2: 0-4 ?
# 0 = fire
# 1 = buster
# 2 = tornado
# 3 = claw
@madewokherd
madewokherd / gist:54df070c885845c7ea722b1097802c8f
Last active October 3, 2017 02:56
Gargoyle's Quest 2 (GB) practice passwords
Any%:
00000256-00000014 - Warrior training center
00000513-00000269 - Fighting through starting town
00004609-00000268 - Nagus
00069889-00525060 - Forced encounter
00068353-00525320 - First bridge
00396289-02622731 - River of Flames
00393985-02622724 - Forest
00398593-02622723 - Death Balloon
10226951-02689537 - Gaza Valley
@madewokherd
madewokherd / script.txt
Last active July 2, 2018 16:18
matchsticks puzzlescript
title Matchsticks
========
OBJECTS
========
Background
GREEN
Target
@madewokherd
madewokherd / wininfo.ahk
Created February 21, 2019 22:55
autohotkey script that displays active window information with Win+F
DetectHiddenWindows, On
SendMode Input
#f::
WinGet, ID, ID, A
WinGet, ProcessName, ProcessName, ahk_id %ID%
WinGet, PID, PID, ahk_id %ID%
WinGetTitle, Title, ahk_id %ID%
WinGetClass, Class, ahk_id %ID%