Skip to content

Instantly share code, notes, and snippets.

View hartbit's full-sized avatar
👨‍💻
Swifting, one commit at a time

David Hart hartbit

👨‍💻
Swifting, one commit at a time
  • Atipik Sàrl & Witty Wings SA
  • Geneva, Switzerland
View GitHub Profile
// From library
typedef void (*Callback) ( int nEvent, const char* sMessage );
void SetCallback( Callback * cbk );
// My code
void MyCallback(int nEvent, const char* sMessage) {
// ....
}
Error: comparison of Fixnum with String failed
Please report this bug:
https://github.com/mxcl/homebrew/wiki/troubleshooting
/usr/local/Library/Homebrew/formula.rb:215:in `>='
/usr/local/Library/Homebrew/formula.rb:215:in `fails_with?'
/usr/local/Library/Homebrew/requirements/python_dependency.rb:204:in `any?'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:195:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:195:in `each_key'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/set.rb:195:in `each'
/usr/local/Library/Homebrew/formula.rb:214:in `any?'
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: hart[dev] Takuzu Generator
%%Title: Takuzu Title
%%CreationDate: 4/12/90 3:20 AM
%%BoundingBox: -0.5 -0.5 256.5 256.5
%%EndComments
% Modifiable variables
/linewidth 1 def
@hartbit
hartbit / Xamarin Version Information
Last active December 19, 2015 16:38
Xamarin Studio 4.0.9 (12) - Create Xamarin.Mac Project error
=== Xamarin Studio ===
Version 4.0.9 (build 12)
Installation UUID: 611c8ffe-1664-4b4e-acac-29a56d6f8404
Runtime:
Mono 2.10.12 (mono-2-10/c9b270d)
GTK 2.24.16
GTK# (2.12.0.0)
Package version: 210120000
public class GenerationEntry : INotifyPropertyChanged
{
private int quantity;
private int size;
private Level level;
public event PropertyChangedEventHandler PropertyChanged;
public GenerationEntry()
{
@hartbit
hartbit / maven.log
Last active December 19, 2015 09:09
Simple POM errors with: Failure to find org.antlr:antlr4-master:jar:4.0 in http://repo1.maven.org/maven2
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gengo 1.0
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.300s
[INFO] Finished at: Fri Jul 05 00:47:44 CEST 2013
Pod::Spec.new do |s|
s.name = 'SDURLCache'
s.version = '1.2'
s.summary = 'URLCache subclass with on-disk cache support on iPhone/iPad.'
s.homepage = 'https://github.com/rs/SDURLCache'
s.author = 'Olivier Poitrey'
s.source = { :git => 'https://github.com/steipete/SDURLCache.git' }
s.requires_arc = true
s.source_files = 'SDURLCache.h', 'SDURLCache.m'
@hartbit
hartbit / cocos2d.podspc
Created November 9, 2012 16:22
cocos2d 2.0 podspec
Pod::Spec.new do |s|
s.name = 'cocos2d'
s.license = 'MIT'
s.version = '2.0.0'
s.summary = 'cocos2d for iPhone is a framework for building 2D games, demos, and other graphical/interactive applications.'
s.description = 'cocos2d for iPhone is a framework for building 2D games, demos, and other graphical/interactive applications for iPod Touch, iPhone, iPad and Mac. It is based on the cocos2d design but instead of using python it, uses objective-c.'
s.homepage = 'http://www.cocos2d-iphone.org'
s.author = { 'Ricardo Quesada' => '[email protected]', 'Zynga Inc.' => 'https://zynga.com/' }
s.source = {:git => 'https://github.com/cocos2d/cocos2d-iphone.git', :tag => 'release-2.0'}
@hartbit
hartbit / cocos2d.podspec
Created November 8, 2012 10:27
cocos2d 1.1.rc0 podspec fixed
Pod::Spec.new do |s|
s.name = 'cocos2d'
s.license = { :type => 'MIT', :file => 'LICENSE_cocos2d.txt' }
s.version = '1.1.rc0'
s.summary = 'cocos2d for iPhone is a framework for building 2D games, demos, and other graphical/interactive applications.'
s.description = 'cocos2d for iPhone is a framework for building 2D games, demos, and other graphical/interactive applications for iPod Touch, iPhone, iPad and Mac. It is based on the cocos2d design but instead of using python it, uses objective-c.'
s.homepage = 'http://www.cocos2d-iphone.org'
s.author = { 'Ricardo Quesada' => '[email protected]', 'Zynga Inc.' => 'https://zynga.com/' }
s.source = {:git => 'https://github.com/cocos2d/cocos2d-iphone.git', :commit => '7ee5b9abf645c32379a45317986a308204277bb1'}
s.preferred_dependency = 'cocos2d'
#import "HDAppDelegate.h"
#import "HDViewController.h"
@interface HDAppDelegate ()
@property (nonatomic, strong) HDViewController* viewController;
@end