Skip to content

Instantly share code, notes, and snippets.

@blam23
blam23 / AxConfig.cs
Created August 26, 2012 18:58
AxConfig Parser
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
namespace AxRun
{
public class AxConfigEntry
{
public string Name;
@blam23
blam23 / AxIni.cs
Created August 26, 2012 18:43
TryGet Stuff
public bool TryGetValue<T>(string k, out T value)
{
object v;
var d = Data.TryGetValue(k, out v);
if (d)
{
if (v is object[])
{
throw new Exception("TryGetValue does not support arrays, use TryGetArray instead.");
}
@blam23
blam23 / scraper.txt
Created August 26, 2012 18:34
AxRun File Scraper Format
Applications
# Get all the startup items!
path = ["%appdata%\Microsoft\Windows\Start Menu", "%SystemDrive%\ProgramData\Microsoft\Windows\Start Menu"]
ext = ["lnk", "exe"]
filter = ["uninstall", "welcome", "help", "start here", "readme", "read me", "release notes"]
recurse = true
@blam23
blam23 / Blur.as
Created August 17, 2012 23:07
Basic Blur BitmapData
var bmp:Bitmap;
var bmpdata:BitmapData;
var srect = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
var blurF:BlurFilter = new BlurFilter(3, 3, BitmapFilterQuality.LOW);
var colorT:ColorTransform = new ColorTransform(1.0, 1.0, 1.0, 0.9);
bmpdata = new BitmapData(0, 0, srect.width, srect.height);
bmp = new Bitmap(bmpdata);
addEventListener(Event.ENTER_FRAME, onFrame);
@blam23
blam23 / beepboop.cs
Created March 12, 2012 18:20
Get portion of image stored in 1d
for(int y = portion.y; y < portion.height+portion.y; y++)
{
for(int x = portion.x; x < portion.width+portion.x; x++)
{
int pixelPos = (x*image.width) + y;
image.pixelData[pixelPos] = Color.Black;
}
}
Patch Notes:
Version 0.5.245
————-
Jan 11
More UI Memory Optimizations
- Added another Dampeer Alt
- Added Russian Blacksmith