Skip to content

Instantly share code, notes, and snippets.

View haldun's full-sized avatar

Haldun Bayhantopcu haldun

  • Berlin, Germany
View GitHub Profile
bilesik kelimeler
<Türkiye Cumhuriyeti Milli Eğitim Bakanlığı Kadıköy Kız Yüksek Meslek Okulu, Müdürlüğü>
<Türkiye, Cumhuriyeti>
<Türkiye Cumhuriyeti, Milli Eğitim Bakanlığı>
<Milli Eğitim, Bakanlığı>
<Türkiye Cumhuriyeti Milli Eğitim Bakanlığı, Kadikoy Kız Yüksek Meslek Okulu>
<Kadikoy, Kız Yüksek Meslek Okulu>
<Kız, Yüksek Meslek Okulu>
@haldun
haldun / gist:7535617
Last active April 17, 2018 22:42
books to be read

Advanced Mac OS X Programming: The Big Nerd Ranch Guide

While there are several books on programming for Mac OS X, Advanced Mac OS X Programming: The Big Nerd Ranch Guide is the only one that contains explanations of how to leverage the powerful underlying technologies. This book gets down to the real nitty-gritty. The third edition is updated for Mac OS X 10.5 and 10.6 and covers new technologies like DTrace, Instruments, Grand Central Dispatch, blocks, and NSOperation.

Cocoa Design Patterns

“Next time some kid shows up at my door asking for a code review, this is the book that I am going to throw at him.” –Aaron Hillegass, founder of Big Nerd Ranch, Inc., and author of Cocoa Programming for Mac OS X Unlocking the Secrets of Cocoa and Its Object-Oriented Frameworks Mac and iPhone developers are often overwhelmed by the breadth and sophistication of the Cocoa frameworks. Although Cocoa is indeed huge, once you understand the object-oriented patterns it uses, you’ll find it remarkably elegant, consist

@haldun
haldun / gist:7437770
Created November 12, 2013 20:09
BLog function for ObjectiveC
#define BLog(formatString, ...) NSLog((@"%s " formatString), __PRETTY_FUNCTION__, ##__VA_ARGS__);
@haldun
haldun / gist:7313944
Created November 5, 2013 04:35
disable selection popup while reading in safaribooks
Safari.S$48 = function() {}
@haldun
haldun / random.m
Created November 2, 2013 10:33
random color
- (UIColor *)randomColor
{
return [self randomColorWithAlpha:1.0f];
}
- (UIColor *)randomColorWithAlpha:(CGFloat)alpha
{
CGFloat hue = (arc4random() % 256 / 256.0 );
CGFloat saturation = (arc4random() % 128 / 256.0 ) + 0.5;
CGFloat brightness = (arc4random() % 128 / 256.0 ) + 0.5;
@haldun
haldun / gist:7141301
Created October 24, 2013 17:16
ffmpeg mp4 -> wmv
ffmpeg -i SANY0016.MP4 -c:v wmv2 -b:v 20M -c:a wmav2 -b:a 192k output.wmv
@haldun
haldun / MNDDataModel.m
Created October 24, 2013 09:29
Core data common setup code
//
// MNDDataModel.m
// Podcasts
//
// Created by Haldun Bayhantopcu on 24/10/13.
// Copyright (c) 2013 monoid. All rights reserved.
//
#import "MNDDataModel.h"
@haldun
haldun / gist:6225066
Created August 13, 2013 20:01
create a playlist via youtube api in ios
GTMOAuth2ViewControllerTouch *viewController = [[GTMOAuth2ViewControllerTouch alloc]
initWithScope:scope
clientID:clientId
clientSecret:clientSecret
keychainItemName:keychainItemName
completionHandler:
^(GTMOAuth2ViewControllerTouch *viewController, GTMOAuth2Authentication *auth, NSError *error) {
if (error) {
[SVProgressHUD showErrorWithStatus:error.localizedDescription];
} else {
@haldun
haldun / gist:6206450
Created August 11, 2013 19:22
slime setup for emacs
(setq inferior-lisp-program "/usr/local/bin/sbcl")
(add-to-list 'load-path "~/.emacs.d/slime/")
(require 'slime)
(slime-setup '(slime-repl))
@haldun
haldun / gist:6184624
Created August 8, 2013 13:35
Ocaml environment setup for OS X
Run these commands in the terminal:
brew update
brew install ocaml
brew install pcre
brew install opam
opam init
eval `opam config env`
opam switch 4.01.0dev+trunk
eval `opam config env`