Skip to content

Instantly share code, notes, and snippets.

View bonkowski's full-sized avatar

André Bonkowski bonkowski

View GitHub Profile

Keybase proof

I hereby claim:

  • I am bonkowski on github.
  • I am bonkowski (https://keybase.io/bonkowski) on keybase.
  • I have a public key whose fingerprint is 86EB 2A1A 1F87 12DD 2147 AA29 7FCA 6753 1111 6769

To claim this, I am signing this object:

@bonkowski
bonkowski / gist:c1856aade4a15eb5810c
Last active August 29, 2015 14:16
Tower config?
(ns helsegris-client.config
(:require-macros [taoensso.tower :as tower-macros :refer (with-tscope)])
(:require [taoensso.tower :as tower]))
(def locale (atom :no))
(defonce t (tower/make-t {:fallback-locale :no
:compiled-dictionary (tower-macros/dict-compile {:no "i18n/helsegris_client_no.edn"
:en "i18n/helsegris_client_en.edn"})}))
(defn t' [key] (t @locale key))
@bonkowski
bonkowski / OCHamcrest.h
Created July 6, 2012 10:56
Hamcrest.h untouched by any scripts
//
// OCHamcrest - OCHamcrest.h
// Copyright 2012 hamcrest.org. See LICENSE.txt
//
// Created by: Jon Reid, http://qualitycoding.org/
// Docs: http://hamcrest.github.com/OCHamcrest/
// Source: https://github.com/hamcrest/OCHamcrest
//
/**
@bonkowski
bonkowski / gist:2835511
Created May 30, 2012 10:58
Linker error
Ld /Users/andbonko/Library/Developer/Xcode/DerivedData/Test-giyxsacvwhhxkbghjgdnxmwwcbic/Build/Products/Debug-iphonesimulator/Test.app/Test normal i386
cd /Users/andbonko/Development/PodTestApp/Test
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/andbonko/Development/CocoaPods/bin:/Users/andbonko/.rvm/gems/ruby-1.9.3-p125/bin:/Users/andbonko/.rvm/gems/ruby-1.9.3-p125@global/bin:/Users/andbonko/.rvm/rubies/ruby-1.9.3-p125/bin:/Users/andbonko/.rvm/bin:/Users/andbonko/CocoaPods/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/andbonko/Library/Developer/Xcode/DerivedData/Test-giyxsacvwhhxkbghjgdn
@bonkowski
bonkowski / gist:1949711
Created March 1, 2012 13:06
Callback handler
- (void)jsonCallback:(int)aCompositeId json:(const char *)json {
NSString *jsonNSString = [NSString stringWithUTF8String:json];
NSDictionary *root = [jsonNSString objectFromJSONString];
if (root) {
NSString *action = [root objectForKey:@"action"];
NSDictionary *options = [root objectForKey:@"options"];
if ([action isEqualToString:POI_CLICKED]) {
[self handlePoiClicked:options];
@bonkowski
bonkowski / gist:1627868
Created January 17, 2012 18:04
Kiwi sample
#import "Kiwi.h"
#import "AdProvider.h"
#import "RowSet.h"
#import "AdFetcher.h"
static NSArray* fetchNumberOfAds(NSInteger numberOfAds) {
NSMutableArray *ads = [[NSMutableArray alloc] init];
for (int i = 0; i < numberOfAds; i++) {
[ads addObject:[[NSObject alloc] init]];
}
@bonkowski
bonkowski / gist:1274096
Created October 9, 2011 20:11
bundle install failure
Fetching source index for http://rubygems.org/
sudo: no tty present and no askpass program specified
sudo: no tty present and no askpass program specified
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/format.rb:32:in `from_file_by_path': Cannot load gem at [/usr/local/rvm/gems/ruby-1.9.2-p290@rvo/cache/rake-0.9.2.gem] in /var/lib/jenkins/jobs/Sekretariatsystemet/workspace (Gem::Exception)
from /usr/local/rvm/gems/ruby-1.9.2-p290@rvo/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:100:in `spec_from_gem'
from /usr/local/rvm/gems/ruby-1.9.2-p290@rvo/gems/bundler-1.0.18/lib/bundler/source.rb:77:in `fetch'
from /usr/local/rvm/gems/ruby-1.9.2-p290@rvo/gems/bundler-1.0.18/lib/bundler/installer.rb:50:in `block in run'
from /usr/local/rvm/gems/ruby-1.9.2-p290@rvo/gems/bundler-1.0.18/lib/bundler/installer.rb:49:in `run'
from /usr/local/rvm/gems/ruby-1.9.2-p290@rvo/gems/bundler-1.0.18/lib/bundler/installer.rb:8:in `install'
from /usr/local/rvm/gems/ruby-1.9.2-p290@rvo/gems/bundler
@bonkowski
bonkowski / devise.nb.yml
Created January 3, 2011 08:58
Norwegian Bokmål
nb:
errors:
messages:
not_found: "ikke funnet"
already_confirmed: "er allerede bekreftet"
not_locked: "var ikke låst"
devise:
failure:
unauthenticated: 'Du må logge inn for å kunne fortsette'
#define HORIZONTAL_MARGIN 1
#define PORTRAIT_SMALL 14
#define PORTRAIT_LARGE 20
#define LANDSCAPE_SMALL 10
#define LANDSCAPE_LARGE 18
#import "BNTitleView.h"
@interface BNTitleView(Private)