Skip to content

Instantly share code, notes, and snippets.

View HBehrens's full-sized avatar

Heiko Behrens HBehrens

View GitHub Profile
@HBehrens
HBehrens / SelectorTests.m
Created July 3, 2012 10:52
proof that NSSelectors are unique and different from their character representation
//
// SelectorTestTests.m
// SelectorTestTests
//
// Created by Heiko Behrens on 29.06.12.
// Copyright (c) 2012 BeamApp. All rights reserved.
//
#import "SelectorTestTests.h"
Pod::Spec.new do |s|
s.name = 'SVWebViewController'
s.version = '0.2.1'
s.summary = 'A drop-in inline browser for your iOS app.'
s.homepage = 'https://github.com/samvermette/SVWebViewController'
s.author = { 'Sam Vermette' => 'http://samvermette.com' }
s.source = { :git => 'https://github.com/HBehrens/SVWebViewController.git' }
s.platform = :ios
s.source_files = 'SVWebViewController/*.{h,m}'
s.resources = 'SVWebViewController/SVWebViewController.bundle'
Pod::Spec.new do |s|
s.name = 'BeamMusicPlayerViewController'
s.version = '0.1'
s.summary = 'An iPhone view controller to visualize and control music playback.'
s.homepage = 'https://github.com/BeamApp/MusicPlayerViewController'
s.authors = { 'Moritz Haarmann' => 'http://momo.brauchtman.net', 'Heiko Behrens' => 'http://HeikoBehrens.net' }
s.source = { :git => 'https://github.com/BeamApp/MusicPlayerViewController.git' }
s.platform = :ios
s.source_files = 'Source/*.{h,m}'
s.resources = 'Source/BeamMusicPlayerController.bundle'
@HBehrens
HBehrens / UrbanAirship.podspec
Last active October 13, 2015 08:07
CocoaPods Spec for UrbanAirship
Pod::Spec.new do |s|
s.name = 'UrbanAirship-iOS-SDK'
s.version = '1.3.5.a'
s.license = 'BSD'
s.platform = :ios
s.summary = 'A simple way to integrate Urban Airship services into your iOS applications.'
s.homepage = 'https://github.com/urbanairship/ios-library'
s.author = { 'Urban Airship' => '[email protected]' }
s.source = { :git => 'https://github.com/HBehrens/ios-library.git', :commit => '038d1bbbed19d5d0459a87e1fce47cdd87b7ddbc' }
Pod::Spec.new do |s|
s.name = 'OCMock'
s.version = '2.0.1.latest'
s.homepage = 'http://ocmock.org'
s.author = { 'Erik Doernenburg' => '[email protected]' }
s.source = { :git => 'https://github.com/erikdoe/ocmock.git',
:commit => '1f7a26aa3212f29d9fd7c19882c16198b421aee1' }
s.summary = 'OCMock is an Objective-C implementation of mock objects.'
@HBehrens
HBehrens / gist:5702482
Last active December 18, 2015 01:18
NSSelectorFromString nor sel_getUid do return string itself
-(void)testSelectorIdentity {
NSString* stringA = @"someSelector";
NSString* stringB = stringA.mutableCopy;
STAssertTrue(stringA != stringB, @"strings with different identity");
SEL selA = NSSelectorFromString(stringA);
SEL selB = NSSelectorFromString(stringB);
STAssertTrue(selA == selB, @"selectors with same identity (NSSelectorFromString)");
selA = sel_getUid(stringA.UTF8String);
@HBehrens
HBehrens / CocoaAsyncSocket.podspec
Last active October 10, 2023 06:17
CocoaHTTPServer.podspec
Pod::Spec.new do |s|
s.name = 'CocoaAsyncSocket'
s.version = '7.3.1'
s.license = 'public domain'
s.summary = 'Asynchronous socket networking library for Mac and iOS'
s.homepage = 'https://github.com/robbiehanson/CocoaAsyncSocket'
s.authors = 'Dustin Voss', { 'Robbie Hanson' => '[email protected]' }
s.source = { :git => 'https://github.com/robbiehanson/CocoaAsyncSocket.git', :commit => '5cf7bac4d0bc18d257e989ea922fd2c4ca9255c4' }
@HBehrens
HBehrens / FileMD5Hash.podspec
Created July 19, 2013 15:21
FileMD5Hash.podspec
Pod::Spec.new do |s|
s.name = 'FileMD5Hash'
s.version = '0.0.1'
s.license = 'Apache'
s.summary = 'Library for computing MD5 hashes of files with small memory usage.'
s.homepage = 'http://www.joel.lopes-da-silva.com/2010/09/07/compute-md5-or-sha-hash-of-large-file-efficiently-on-ios-and-mac-os-x/'
s.author = { 'Joel Lopes Da Silva' => '[email protected]' }
s.source = { :git => 'https://github.com/HBehrens/FileMD5Hash.git', :commit => '23167b4413ccc1b554f3a88182f077042eba76c0' }
s.prefix_header_file = 'Common/FileMD5Hash_Prefix.pch'
angular.module 'App', []
TicTacToeCntl = ($scope) ->
init = ->
@reset = =>
@board = (['','',''] for [1..3])
@nextMove = 'X'
@winner = ''
@grade()
tr {
height: 42px;
}
td {
width: 40px;
font-size: 32px;
border: 1px solid black;
text-align: center;
vertical-align: middle;