This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This requires twitter json and datamapper gems. | |
require 'rubygems' | |
require 'twitter' | |
require 'pp' | |
require 'json' | |
require 'getoptlong' | |
require 'fileutils' | |
require 'dm-core' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'twitter' | |
require 'pp' | |
require 'json' | |
require 'getoptlong' | |
require 'fileutils' | |
require 'dm-core' | |
#DataMapper::Logger.new($stdout, :debug) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#setup the awesome | |
class FalseClass | |
def +(other) | |
self || other | |
end | |
end | |
def pew! | |
true | |
end | |
pew = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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]); \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSData+MWExtras.h | |
// MagicWall | |
// | |
// Created by Zac Bowling on 2/10/11. | |
// Copyright 2011 i'mhello. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NSString+MWExtras.h | |
// MagicWall | |
// | |
// Created by Zac Bowling on 2/5/11. | |
// Copyright 2011 i'mhello. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. ## |
OlderNewer