Skip to content

Instantly share code, notes, and snippets.

@TSM-EVO
TSM-EVO / shortcut.xml
Created January 18, 2023 08:07
Convert .tsv to DFHack quickfort .csv - copy to the <Macros> section of shortcut.xml in %appdata%/Roaming/Notepad++
<Macro name="convertTSVforDV" Ctrl="yes" Alt="no" Shift="yes" Key="67">
<Action type="0" message="2013" wParam="0" lParam="0" sParam="" />
<Action type="0" message="2178" wParam="0" lParam="0" sParam="" />
<Action type="0" message="2316" wParam="0" lParam="0" sParam="" />
<Action type="1" message="2170" wParam="0" lParam="0" sParam="$" />
<Action type="1" message="2170" wParam="0" lParam="0" sParam="$" />
<Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
<Action type="3" message="1601" wParam="0" lParam="0" sParam="\t" />
<Action type="3" message="1625" wParam="0" lParam="2" sParam="" />
<Action type="3" message="1602" wParam="0" lParam="0" sParam="," />
@TSM-EVO
TSM-EVO / GAME_MASTER_v0_1.protobuf
Created July 25, 2016 23:57 — forked from anonymous/GAME_MASTER_v0_1.protobuf
Pokemon Go decoded GAME_MASTER protobuf file v0.1
Result: 1
Items {
TemplateId: "BADGE_BATTLE_ATTACK_WON"
Badge {
BadgeType: BADGE_BATTLE_ATTACK_WON
BadgeRanks: 4
Targets: "\nd\350\007"
}
}
Items {
@TSM-EVO
TSM-EVO / Simple.Kassadin.lua
Created August 14, 2014 06:01
Simple.Kassadin
Simple.Kassadin = {
EHero =
function(target)
for target in Y.iter_enemies() do
if ValidTarget(target.__original) then
local E = {range = 700, width = 100, speed = 1000, delay = .25, minions = false}
local CastPosition, HitChance, Targets = YP:GetLineCastPosition(target, E.delay, E.width, E.range, E.speed, myHero, E.minions)
if HitChance >= 2 then
local x, y, z = CastPosition.x, CastPosition.y, CastPosition.z
CastSpellXYZ('E', x, y, z)