Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am cdombroski on github.
  • I am cdombroski (https://keybase.io/cdombroski) on keybase.
  • I have a public key ASA3p1i8L2C5fcLYtifgT-ipY4FAqRbE0OnUqdQkGEKU6Ao

To claim this, I am signing this object:

@cdombroski
cdombroski / zone.cpp
Last active August 29, 2015 14:14
Methods to extract
//these should probably all move
bool isActivityZone(df::building * building);
bool isPenPasture(df::building * building);
bool isPitPond(df::building * building);
bool isActive(df::building * building);
int32_t findBuildingIndexById(int32_t id);
int32_t findPenPitAtCursor();
int32_t findCageAtCursor();
int32_t findChainAtCursor();
@cdombroski
cdombroski / test-build.csv
Last active August 29, 2015 14:13
Blueprint output 2
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 21. in line 1.
#build
, , , , , , , , , , , , , , , , , , , ,#
,ib,ib,ib,Tl, , , , , , , , ,D,D,D,D,D, , ,#
,ib,ib,ib, , , , , , , , , ,D,D,D,D,D, , ,#
,ib,ib,ib, , , ,a, , , , , ,D,D,D,D,D, , ,#
ib,ib,ib, , , , , , , , , , ,D,D,D,D,D, , ,#
ib,ib,ib, , , , , , , , , , ,D,D,D,D,D, , ,#
ib,ib,ib, , , , , , , , , , , , , , , , , ,#
ib,ib, , , , , , , , , , , , , , , , , , ,#
ib,ib, , , , , , , , , , , , , , , , , , ,#
@cdombroski
cdombroski / test-dig.csv
Created January 8, 2015 17:13
blueprint output
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 11. in line 1.
#dig
, , , , , , , , , ,#
, , , , , , , , , ,#
, , , , , , , , , ,#
, , , , , , , , , ,#
, , , , , , , , , ,#
, , , , , , , , , ,#
, , , , , , , , , ,#
, , , , , , , , , ,#
, , , , , , , , , ,#
package org.icanttype;
import java.util.Iterator;
import java.util.Random;
/**
* Created by chris.dombroski on 10/14/2014.
*/
public class SmartList<T extends Comparable<? super T>> {
private int count = 0;
@cdombroski
cdombroski / backend-caller.sh
Created August 26, 2013 14:10
Full backend debugging for dovecot-antispam
#!/bin/bash
tmpf=/tmp/antispam.log.$$
(
date
id
let i=0
for arg; do
let i=1+i
echo "arg $i $arg"
done