Skip to content

Instantly share code, notes, and snippets.

View awilfox's full-sized avatar
🦊
Mostly doing FOSS on weekends

A. Wilcox awilfox

🦊
Mostly doing FOSS on weekends
View GitHub Profile
@awilfox
awilfox / preproc.h
Created January 10, 2012 02:43
Xcode 4.2 (4C199) on Mac OS X.6.8 (10K549) system preprocessor definitions
// cpp -E -dM
#define __DBL_MIN_EXP__ (-1021)
#define __FLT_MIN__ 1.17549435e-38F
#define __DEC64_DEN__ 0.000000000000001E-383DD
#define __CHAR_BIT__ 8
#define __WCHAR_MAX__ 2147483647
#define __NO_MATH_INLINES 1
#define __DBL_DENORM_MIN__ 4.9406564584124654e-324
#define __FLT_EVAL_METHOD__ 0
#define __DBL_MIN_10_EXP__ (-307)
@awilfox
awilfox / hello.m
Created February 28, 2012 10:26
Hello, World!
#import <Foundation/Foundation.h>
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSLog(@"Hello world!");
[pool drain];
return 0;
@awilfox
awilfox / build-for-iPhone.sh
Created March 19, 2012 19:46
I hate shell scripting :)
#!/bin/sh
echo "**** STARTING BUILD OF eScape for iPhone AT `date` ****"
echo
echo
# Clean anything that happened before.
make clean || echo "Okay, we're starting fresh"
@awilfox
awilfox / Makefile
Created October 7, 2012 01:02 — forked from duckinator/test.c
file=".tmp-`date +'%s'`.c"
test.c: a.out run
a.out:
@tail -n +2 test.c > ${file}
@gcc -std=c99 -ggdb -I. -DDEBUG ${REST} ${file}
@rm ${file}
run: a.out
@awilfox
awilfox / gist:4002717
Created November 2, 2012 17:01
I lol'd
12:53 < awilcox> some of the regulars here might remember me as WolfKit
12:53 < draig> I saw that name before I think
12:53 < JeremieDeNoob> been here for about 1 yr and a half... coming many times almost everyweekl
12:54 < JeremieDeNoob> wolfKit? didnt u have an issue woith one of the other members?
12:54 < Rolken> it's irc, we all have issues with each other
12:54 < Rolken> (you asshole!)
12:54 < awilcox> JeremieDeNoob, I don't recall ever having beef with anyone on #iphonedev
12:54 < JeremieDeNoob> lol Rolken
12:55 < awilcox> someone else hated on me because I was trying to keep people on-topic when someone was asking about a table view and they were too busy talking about the new world order to help
12:55 < awilcox> and said I was just terrified of the new world order, and that's why I wanted them to shut up, or something
@awilfox
awilfox / _form.html.erb
Created February 13, 2013 13:55
how bad am I at life?
<script type="text/javascript">
var address_count = <%= @patron.addresses.count %>;
function buildField(name)
{
return $('<div class="field"><label for="patron_addresses_attributes_'+address_count+'_'+name+'">'+name+'</label><br /><input type="text" id="patron_addresses_attributes_'+address_count+'_'+name+'" name="patron[addresses_attributes]['+address_count+']['+name+']"></div>');
}
function buildTypeSelect()
{
var $field = $('<div class="field"><label for="patron_addresses_attributes_'+address_count+'_address_type>Address type</label></div>');
awilcox on ind-wkst040 mozilla-central: ./mach bootstrap [s005 Mon 15 6:22]
Looks like you have Homebrew installed. We will install all required packages via Homebrew.
Error running mach:
['bootstrap']
The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
@awilfox
awilfox / gist:6003830
Created July 15, 2013 21:52
Mozilla build error on Mac OS X
0:02.74 /Users/awilcox/Code/moz/mozilla-central/obj-ff-dbg/mozglue/build/tmpsLK3Ew.l
0:02.74 ../../memory/build/jemalloc_config.o
0:02.74 ../../memory/build/mozmemory_wrap.o
0:02.74 ../../memory/mozjemalloc/jemalloc.o
0:02.74 ../../mfbt/bignum-dtoa.o
0:02.74 ../../mfbt/bignum.o
0:02.74 ../../mfbt/cached-powers.o
0:02.75 ../../mfbt/diy-fp.o
0:02.75 ../../mfbt/double-conversion.o
0:02.75 ../../mfbt/fast-dtoa.o
@awilfox
awilfox / gist:6003919
Created July 15, 2013 22:04
Mozilla build error on Mac OS X redux
0:06.62 There are no private exports.
0:07.09 cd include; /Applications/Xcode5-DP.app/Contents/Developer/usr/bin/make libs
0:07.14 cd src; /Applications/Xcode5-DP.app/Contents/Developer/usr/bin/make libs
0:07.15 cd builtins; /Applications/Xcode5-DP.app/Contents/Developer/usr/bin/make libs
0:07.16 mkdir: /Users/awilcox/Code/moz/mozilla-central/obj-ff-dbg/security/nss/lib/freebl: File exists
0:07.20 cd mangle; /Applications/Xcode5-DP.app/Contents/Developer/usr/bin/make libs
0:07.27 cd legacydb; /Applications/Xcode5-DP.app/Contents/Developer/usr/bin/make libs
0:07.67 duplicate symbol ___sputc in:
0:07.67 host_nsinstall.o
0:07.67 host_pathsub.o
@awilfox
awilfox / vision.md
Created November 12, 2014 09:58
SoundScape

Vision and Scope Document for

SoundScape

This document contains preliminary information about a forthcoming software product from Wilcox Technologies. The information contained within may not reflect the final product, and could change rapidly during the development process. Always ensure that you have the latest copy of all documents before raising any concerns you may have.

As this project is licensed under an Open Source (NCSA) license, this document may be redistributed under the terms of that license. A copy of this license is included at the end of this document.

Revision history

| Name | Date | Summary | Version |