Skip to content

Instantly share code, notes, and snippets.

View jacksonh's full-sized avatar
🎯
Focusing

Jackson Harper jacksonh

🎯
Focusing
View GitHub Profile
import Foundation
protocol Serializable {
static func deserializeInto(bytePtr: UnsafeMutablePointer<UInt8>, bytes: ArraySlice<UInt8>) -> ArraySlice<UInt8>
}
extension Serializable {
typealias WorkaroundSelf = Self
@orta
orta / podcasts.md
Created January 15, 2014 15:14
Recommended Podcasts

Tech

  • Edge Cases - Highly technical, lots of raw content.
  • Springboard - Cute, useful to me as someone interested in how people learn iOS.
  • Debug - Lots of interviews with ex-apple employees.

Mental Cooldown

  • Escape Pod - Small Sci-Fi stories, quality varies but nice for a long walk where you want your mind to wonder.
@border
border / long_polling.go
Created September 25, 2012 09:58
long polling for golang
package main
import (
"container/list"
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
@bvanderveen
bvanderveen / gist:3260382
Created August 4, 2012 22:34 — forked from jacksonh/gist:3257926
Objective-C assertion ideas
- (void) assertionIdeasLikeNUnit
{
[Assert that:@"foobar" is:[Equal to:@"other"]];
[Assert that:@"foobar" isNot:[Equal to:@"other"]];
[Assert that:collection isAll:[Less than:@10]];
[Assert that:collection isAll:[Less thanOrEqualTo:@10]];
[Assert that:collection isAll:[Less thanOrEqualTo:@10]];
[Assert that:collection isAll:[Greater than:@10]];
[Assert that:collection isAll:[Greater thanOrEqualTo:@10]];
using System;
using MonoTouch.UIKit;
using System.Drawing;
using MonoTouch.AudioToolbox;
using MonoTouch.CoreGraphics;
namespace GoogleMusic
{
public class LevelMeter : UIView
{
We couldn’t find that file to show.
public interface IApplication {
// either may throw exception
IAsyncResult BeginInvoke(IRequest request, AsyncCallback callback, object state);
IResponse EndInvoke(IAsyncResult result);
}
@escoz
escoz / EscozUrlConnection.cs
Created November 24, 2010 22:40
NSUrlConnection wrapper class to simplify networking using it with MonoTouch.
using System;
using MonoTouch.Foundation;
using System.Collections.Generic;
using MonoTouch.UIKit;
namespace ESCOZ
{
public class EscozUrlConnection:NSUrlConnection {
private static Dictionary<string, EscozUrlConnection> Connections = new Dictionary<string, EscozUrlConnection>();
@jessearmand
jessearmand / mpParse.m
Created November 23, 2010 13:59
A command line tool to parse .mobileprovision file
//
// © 2008 Eugene Solodovnykov
// http://idevblog.info/mobileprovision-files-structure-and-reading/
//
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
@tmpvar
tmpvar / schmorp's dungeon
Created May 17, 2010 01:26
conversation about libeio and win32 compatibility with the man himself
<tmpvar> hello
<schmorp> hi
<tmpvar> hey, have you heard of any success with getting libeio built/running on windows?
<schmorp> no
<schmorp> it's not supposed to work, really
<schmorp> (windows doesn't support 99% or so of the required api)
<tmpvar> hrm
<tmpvar> yeah, good ol' windows.
* _ry (~ry@tinyclouds.org) has joined #schmorp
<_ry> schmorp: what's wrong with libeio on windows?