This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SomeThang | |
{ | |
int whoCares; | |
public SomeThang(int whatever) | |
{ | |
whoCares = whatever; | |
} | |
static public implicit operator bool(SomeThang someThang) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This is a snippet of code from the FNA version of Rogue Legacy. | |
* | |
* A recent FNA update fixed Storage accuracy, affecting save locations: | |
* https://plus.google.com/102593483001615978126/posts/7qE6nJGcdL2 | |
* As a result, games like Rogue Legacy now need a migration process. | |
* | |
* This is the first one I've written, and I'm posting it here for when | |
* I take care of the rest of my affected ports. | |
* | |
* -flibit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* SpriteFont Accuracy Test | |
* Written by Ethan "flibitijibibo" Lee | |
* http://www.flibitijibibo.com/ | |
* | |
* Released under public domain. | |
* No warranty implied; use at your own risk. | |
*/ | |
using Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Graphics; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ContentCaseCheck - XNA Content Case Sensitivity Verification Tool | |
* Written by Ethan "flibitijibibo" Lee | |
* http://www.flibitijibibo.com/ | |
* | |
* Released under public domain. | |
* No warranty implied; use at your own risk. | |
*/ | |
using System; | |
using System.IO; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export SDL_GAMECONTROLLERCONFIG="0600000057696920552047616d655000,Wii U GamePad (libdrc),platform:Linux,x:b12,a:b14,b:b15,y:b13,back:b2,guide:b1,start:b3,dpleft:b11,dpdown:b8,dpright:b10,dpup:b9,leftshoulder:b5,lefttrigger:b7,rightshoulder:b4,righttrigger:b6,leftstick:b23,rightstick:b22,leftx:a0,lefty:a1,rightx:a2,righty:a3," |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Makefile for "int main;" C Program | |
# Written by Ethan "flibitijibibo" Lee | |
ifeq ($(shell uname), Darwin) | |
ASMPARAM = -mllvm --x86-asm-syntax=intel | |
else | |
ASMPARAM = -masm=intel | |
endif | |
all: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Thanks Edward! | |
remove_runtime() { | |
# strip out STEAM RUNTIME from the path | |
VAR="$1" | |
declare -a paths | |
good_paths="" | |
OLDIFS=$IFS | |
IFS=: | |
paths=(${VAR}) | |
IFS=$OLDIFS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* "Nascar Jacket" Image Generator | |
* Written by Ethan "flibitijibibo" Lee | |
* | |
* Released under public domain. | |
* No warranty implied, use at your own risk. | |
* | |
* Directions: | |
* - Grab a bunch of header.jpg files from Steam store pages | |
* - Line them up in zero-indexed numerical order (0.jpg, 1.jpg, ...) | |
* - Edit the defines below to get the jacket you want |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* XDG/OSX Save and Config Folder Thing | |
* Written by Ethan "flibitijibibo" Lee | |
* http://www.flibitijibibo.com/ | |
* | |
* Released under public domain. | |
* No warranty implied; use at your own risk. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* SDL-based Event Object Copycat | |
* Written by Ethan "flibitijibibo" Lee | |
* | |
* Released under public domain. | |
* No warranty implied; use at your own risk. | |
*/ | |
#include <SDL2/SDL.h> | |
typedef struct EventObject EventObject; |
OlderNewer