Skip to content

Instantly share code, notes, and snippets.

View Metapyziks's full-sized avatar
🏡
Working from home

James King Metapyziks

🏡
Working from home
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Chunks;
using Chunks.Geometry;
namespace ImprovedTerrain
{
public class ExampleTerrainGenerator : TerrainGeneratorBase
{"frames": [
{
"filename": "run00",
"frame": {"x":34,"y":128,"w":56,"h":60},
"rotated": false,
"trimmed": true,
"spriteSourceSize": {"x":0,"y":2,"w":56,"h":60},
"sourceSize": {"w":56,"h":64}
},
radardisc
skipicon
siterocket
siteM16
radar_ZERO
radar_WOOZIE
radar_waypoint
radar_tshirt
radar_truck
radar_triadsCasino
effectsPC.txd
fonts.txd
fronten1.txd
fronten2.txd
fronten3.txd
fronten_pc.txd
hud.txd
misc.txd
particle.txd
pcbtns.txd
@Metapyziks
Metapyziks / export-google-music-playlist.user.js
Created December 28, 2014 02:22
Adds a button to export a Google Music playlist.
// ==UserScript==
// @name Export Google Music Playlist
// @namespace http://ziks.net/
// @version 0.1
// @description Adds a button to export a Google Music playlist
// @author Ziks
// @match https://play.google.com/music/listen
// @require http://code.jquery.com/jquery-latest.js
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js
// @grant none
# Trouble in Terrorist Town weapon/ammo placement overrides
# For map: ttt_concrete_b3
# Exported by: Metapyziks
setting: replacespawns 0
weapon_zm_pistol -501.7031 779.6131 352.1411 0.015 35.145 88.274
weapon_zm_pistol -1217.2451 1306.0405 144.3116 -0.095 35.998 88.670
weapon_zm_pistol -2002.1375 395.8474 360.0158 -0.559 35.368 88.767
weapon_zm_pistol -2024.8444 1462.7076 512.2854 0.018 35.157 87.873
weapon_zm_pistol -2127.0566 2335.3096 144.3037 -0.106 36.004 88.538
weapon_zm_pistol -862.7108 2824.9270 224.3397 0.293 36.872 88.790
@Metapyziks
Metapyziks / CardFlipSolver.cs
Last active August 29, 2015 13:56
Solver for the card flip minigame in Pokemon Heart Gold / Soul Silver.
//#define TEST
using System;
using System.Collections.Generic;
using System.Linq;
namespace CardFlipSolver
{
class Program
{
@Metapyziks
Metapyziks / KeyCount.cs
Created November 24, 2013 14:21
Key counting program.
using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using MouseKeyboardActivityMonitor;
using MouseKeyboardActivityMonitor.WinApi;
using System.Text.RegularExpressions;
function CreateHollowCircle(x, y, innerRadius, outerRadius, startAngle, rotation)
rotation = math.min(rotation or (math.pi * 2), math.pi * 2)
startAngle = startAngle or 0
local quality = math.min(256, 4 * math.sqrt(outerRadius) + 8)
local verts = {}
local angA, angB
local mul = math.pi * 2 / quality
local count = quality * rotation / (math.pi * 2)
for i = 0, count do
angA = startAngle + i * mul
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Linq;
public abstract class Fetchable
{
protected static String BuildURL(String baseURL, params Object[] pairs)
{