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
@zbowling
zbowling / 0001-android-Add-locale-support.patch
Created September 29, 2014 18:02
libc++ patches from google
From 4cc54e7dcd19f78a3ebaaa3c6f05885029c53b01 Mon Sep 17 00:00:00 2001
From: David 'Digit' Turner <digit@google.com>
Date: Wed, 12 Feb 2014 20:04:18 +0800
Subject: [PATCH 01/12] android: Add locale support.
This is based on the Bionic <ctype.h> declarations. Note that
unfortunately, the _ctype_ table exposed by this header has a bug
so a fixed copy is included here instead.
See src/support/android/locale_android.cpp for details.
#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]); \
//
// 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
//
// 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>
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. ##