Skip to content

Instantly share code, notes, and snippets.

View keybase.md

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 Aug 29, 2015
Methods to extract
View zone.cpp
//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 Aug 29, 2015
Blueprint output 2
View test-build.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 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, , , , , , , , , , , , , , , , , , ,#
View test-dig.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have column, instead of 11. in line 1.
#dig
, , , , , , , , , ,#
, , , , , , , , , ,#
, , , , , , , , , ,#
, , , , , , , , , ,#
, , , , , , , , , ,#
, , , , , , , , , ,#
, , , , , , , , , ,#
, , , , , , , , , ,#
, , , , , , , , , ,#
View SmartList.java
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 Aug 26, 2013
Full backend debugging for dovecot-antispam
View backend-caller.sh
#!/bin/bash
tmpf=/tmp/antispam.log.$$
(
date
id
let i=0
for arg; do
let i=1+i
echo "arg $i $arg"
done