Skip to content

Instantly share code, notes, and snippets.

@Equinox-
Equinox- / README
Last active Jan 27, 2021
Very simple DDS plugin for GIMP that uses texconv to convert things behind the scenes to encode/decode BC7
View README
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`
View session.xml
<?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 Aug 29, 2015
habit-rpg-productivity.sh
View .habitrc
YOUR_API_TOKEN=token
YOUR_USER_ID=id
View ll.c
#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 Mar 7, 2014
Grabs cards from brainspace and exports them as CSV.
View hack-brainspace.js
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 Aug 29, 2015
Conway's Game of Life, written in C/OpenGL. Uses bitmasking for optimization. Build with -lglut -lGL.
View main.c
#include <gl.h>
#include <freeglut.h>
#define LIVE_MASK 0b10000
#define WIDTH 1366
#define HEIGHT 768
short ** front;
short ** back;
View attackIdLookupAndRenaming.js
/* 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 Feb 22, 2016
Fluffy88's Snipe Calculator (dalesmckay modification) (Equinox- ms modification)
View v8.1-snipe.js
/*
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 Jan 1, 2016
Christmas Lights Controller + Music Player
View christmas-lights-main.c
#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 Dec 31, 2015
Extra-Spicy Gingersnaps
View extra-spicy-gingersnaps.md

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: