Skip to content

Instantly share code, notes, and snippets.

View Trylobot's full-sized avatar
🌴
Driving a hammock

Taylor Cole Trylobot

🌴
Driving a hammock
View GitHub Profile
@Trylobot
Trylobot / ext_pal_xform.lua
Last active February 10, 2022 01:26
EXTernal PALette transFORM .LUA - Aseprite script prototype, version 1
-- EXTernal PALette transFORM .LUA - Aseprite script prototype, version 1
-- load sg2-format palette image
-- load sg2 sprite
-- validate
-- move between palette states by applying palette transformations
local dlg = Dialog { title = "External Palette Transformation " }
local pal_img = nil
local pal_height_px = 0
local expected_palette_img_width = 256 -- TODO: this is hardcoded for now
@Trylobot
Trylobot / multi_sg2_start.ahk
Created December 1, 2021 19:57
Samurai Gunn 2 - keyboard input multiplexer
#SingleInstance Force
; create window to receive input
; multi_sg2_start.ahk
Gui, Add, Picture, w300 h300, .\sg2 guide\sg2_six_diagram_swordfighter_smol.png
Gui, Add, StatusBar
Gui, Show
Return
GuiClose:
@Trylobot
Trylobot / sg2_borderless_fullscreen_ish_QHD.ahk
Created November 29, 2021 00:12
Samurai Gunn 2: sort of borderless windowed (QHD/1440p, primary)
; WinMove, WinTitle, WinText, X, Y , Width, Height, ExcludeTitle, ExcludeText
; 2560 x 1440 is QHD
; 32px for title bar
WinMove,Samurai Gunn 2,,0,-30,2560,1432
package data.scripts;
// Java version: 7
import com.fs.starfarer.api.BaseModPlugin;
import com.fs.starfarer.api.EveryFrameScript;
import com.fs.starfarer.api.Global;
import com.fs.starfarer.api.campaign.SectorAPI;
import com.fs.starfarer.api.characters.MutableCharacterStatsAPI;
@Trylobot
Trylobot / Remove_EA_Origin_Registry_keys.bat
Created July 8, 2014 00:07
Manually Uninstall EA Origin
REM http://help.ea.com/en/article/manually-uninstalling-origin/
REG DELETE HKLM\SOFTWARE\Wow6432Node\Origin /f
REG DELETE HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Origin /f
@Trylobot
Trylobot / LICENSE.md
Last active August 29, 2015 14:03
Research License 1.0

#Research License 1.0

##Definitions

  1. AUTHOR — Tyler W.R. Cole

  2. SOFTWARE — The Hive AI Programming Tool, as served from GitHub

  3. INTENT/PURPOSE — Non-commercial license of SOFTWARE written by AUTHOR

{
"directory": "components"
}
@Trylobot
Trylobot / install_monaco_font.sh
Last active March 10, 2021 09:47 — forked from rogerleite/install_monaco_font.sh
Install Monaco Font in Linux
#!/bin/bash
#script extraido de: http://paulocassiano.wordpress.com/2008/08/29/deixando-o-gedit-com-a-cara-do-textmate/
#tip for better "resolution" here: http://blog.siverti.com.br/2008/05/22/fonte-monaco-no-ubuntugedit/
cd /usr/share/fonts/truetype/
#TODO: put validation if folder already exists
sudo mkdir ttf-monaco
// keeps key/value associations
_.mixin({
// similar to _.map
objMap: function( input, mapper, context ) {
return _.reduce( input, function (obj, v, k) {
obj[k] = mapper.call( context, v, k, input );
return obj;
}, {}, context);
},
// similar to _.filter