Skip to content

Instantly share code, notes, and snippets.

View zbowling's full-sized avatar
🌐
Working from everywhere

Zac Bowling zbowling

🌐
Working from everywhere
View GitHub Profile
#This requires twitter json and datamapper gems.
require 'rubygems'
require 'twitter'
require 'pp'
require 'json'
require 'getoptlong'
require 'fileutils'
require 'dm-core'
require 'rubygems'
require 'twitter'
require 'pp'
require 'json'
require 'getoptlong'
require 'fileutils'
require 'dm-core'
#DataMapper::Logger.new($stdout, :debug)
#setup the awesome
class FalseClass
def +(other)
self || other
end
end
def pew!
true
end
pew = true
#define RETAINSTACKLENGTH 7
#define RETAINLOG(action) NSLog(@"%@ \t%s \tretainCount: %i", action, __PRETTY_FUNCTION__, [self retainCount])
#define RETAINCOUNTSTACK(action) { \
RETAINLOG(action); \
NSArray *stack = [NSThread callStackSymbols]; \
NSLog(@"last called by %@", [stack objectAtIndex: 1]); \
int max = [stack count] < RETAINSTACKLENGTH ? [stack count] : RETAINSTACKLENGTH; \
NSLog(@"---- call stack ----"); \
for (int i = 1; i < max; i++) { \
NSLog(@" %@", [stack objectAtIndex: i]); \
//
// NSData+MWExtras.h
// MagicWall
//
// Created by Zac Bowling on 2/10/11.
// Copyright 2011 i'mhello. All rights reserved.
//
#import <Foundation/Foundation.h>
//
// NSString+MWExtras.h
// MagicWall
//
// Created by Zac Bowling on 2/5/11.
// Copyright 2011 i'mhello. All rights reserved.
//
#import <Foundation/Foundation.h>
//
// OrderedDictionary.h
// OrderedDictionary
//
// Created by Matt Gallagher on 19/12/08.
// Copyright 2008 Matt Gallagher. All rights reserved.
//
// Permission is given to use this source code file without charge in any
// project, commercial or otherwise, entirely at your risk, with the condition
// that any redistribution (in part or whole) of source code must retain
var opts = {};
var io = require('socket.io');
opts.port = 20200;
var rest = require('restler');
var app = require('express').createServer();
var sys = require('sys');
var TwilioClient = require('twilio').Client;
var Twiml = require("twilio").Twiml;
var client = new TwilioClient(ACCOUNT_SID, AUTH_TOKEN, MY_HOSTNAME,opts);
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GnuTLS configure 2.12.11, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --disable-debug --disable-dependency-tracking --disable-guile --disable-static --prefix=/usr/local/Cellar/gnutls/2.12.11 --with-libgcrypt
## --------- ##
## Platform. ##
@zbowling
zbowling / zerocater-campy-output.txt
Created September 25, 2011 23:10
zerocater-campy-output
This Week
Monday, Sep 19 @ 11:30a.m. - Sausages — Rosamunde for 10 people
* 5 Beer Sausage
smoked, spicy pork & beef
* 5 Weisswurst
veal, onion & leek
* 2 Vegan Smoked Apple Sage
* 4 Mixed Green Salad
* 4 German Potato Salad