Skip to content

Instantly share code, notes, and snippets.

@Equinox-
Equinox- / README
Last active April 4, 2024 10:03
Very simple DDS plugin for GIMP that uses texconv to convert things behind the scenes to encode/decode BC7
1. Download the `file-dds-texconv.py` file. Edit BINARY to be the path to your texconv binary (located in the SE ModSDK, or elsewhere)
2. Copy the script into the GIMP plugins directory. For instance, `C:\Program Files\GIMP 2\lib\gimp\2.0\plug-ins`
<?xml version="1.0" encoding="utf-16"?>
<MyObjectBuilder_SessionManager xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<CustomLogger>
<LogLevel>Debug</LogLevel>
<Filename>ProceduralWorld.log</Filename>
</CustomLogger>
<CommandDispatch />
<Network />
<RPC />
<ProceduralWorldManager />
@Equinox-
Equinox- / .habitrc
Last active August 29, 2015 14:16
habit-rpg-productivity.sh
YOUR_API_TOKEN=token
YOUR_USER_ID=id
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
typedef int T; // Could be anything
T *firstNode = NULL;
T *lastNode = NULL;
@Equinox-
Equinox- / hack-brainspace.js
Created March 7, 2014 18:58
Grabs cards from brainspace and exports them as CSV.
function grabCard() {
if (document.getElementsByClassName("q-title")[0] == undefined) {
return;
}
var data = "";
var prompt = "";
if (document.getElementsByClassName("card-question-prompt")[0] != undefined) {
prompt = "<span>" + document.getElementsByClassName("card-question-prompt")[0].innerHTML.replace(/\"/g,"'").replace(/\n/g,"") + "</span></br>";
}
data += "\"" + prompt + document.getElementsByClassName("q-title")[0].innerHTML.replace(/\"/g,"'").replace(/\n/g,"") + "\",\"" + document.getElementsByClassName("a-title")[0].innerHTML.replace(/\"/g, "'").replace(/\n/g,"") + "\"";
@Equinox-
Equinox- / main.c
Last active August 29, 2015 13:56
Conway's Game of Life, written in C/OpenGL. Uses bitmasking for optimization. Build with -lglut -lGL.
#include <gl.h>
#include <freeglut.h>
#define LIVE_MASK 0b10000
#define WIDTH 1366
#define HEIGHT 768
short ** front;
short ** back;
/* all fiddely bits */
if(!this.nameTemplate) nameTemplate = '{unit} {launched2} {coords} {player} {duration} {distance} {backtime} {attack_id}';
if(!this.tableTemplate) tableTemplate = '<tr><td rowspan="11">Additional Information</td><td>Unit:</td><td>{unit}</td></tr><tr><td>Launched (AttackID)</td><td>{launched1}</td></tr><tr><td>Launched (Corrected)</td><td>{launched2}</td></tr><tr><td>Coords</td><td>{coords}</td></tr><tr><td>Player</td><td>{player}</td></tr><tr><td>Duration</td><td>{duration}</td></tr><tr><td>Distance</td><td>{distance}</td></tr><tr><td>Return (Backtime)</td><td>{backtime}</td></tr><tr><td>attackId</td><td>{attack_id}</td></tr><tr><td>Change Name</td><td>{namechange}</td></tr><tr><td>Forum Post</td><td><input id="forumpost" value="{forumpost}" size="40"/></td></tr>';
if(!this.forumTemplate) forumTemplate = '[table][**]Attack On[||][img]http://en57.tribalwars.net/graphic/command/support.png[/img][player]{targetplayer}[/player][||]Origin[||][img]http://en57.tribalwars.net/graphic/command/at
@Equinox-
Equinox- / v8.1-snipe.js
Last active February 22, 2016 03:52
Fluffy88's Snipe Calculator (dalesmckay modification) (Equinox- ms modification)
/*
Author : Fluffy88
Website : http://fluffy88.com
Rewritten by : dalesmckay
TODO: save settings in a cookie
*/
function fnInjectOverviewBar(){
/* Default to your own currently active village */
@Equinox-
Equinox- / christmas-lights-main.c
Last active January 1, 2016 08:29
Christmas Lights Controller + Music Player
#define F_CPU 1000000UL /* Clock Frequency = 1Mhz */
#include <avr/io.h>
#include <util/delay.h>
//Notes
#define C1 (32)
#define Cs1 (34)
#define D1 (36)
#define Ds1 (39)
@Equinox-
Equinox- / extra-spicy-gingersnaps.md
Last active December 31, 2015 17:09
Extra-Spicy Gingersnaps

Extra-Spicy Gingersnaps

Prep and cook time: About 40 minutes plus 20 minutes to chill dough.

Notes: Store airtight at room temperature for up to 3 days or freeze for longer storage.

Makes: 5 dozen cookies

Materials: