Skip to content

Instantly share code, notes, and snippets.

View florianbachmann's full-sized avatar
💭
rock n roll

Flori florianbachmann

💭
rock n roll
View GitHub Profile
//
// NSObject+BlockObservation.h
// Version 1.0
//
// Andy Matuschak
// andy@andymatuschak.org
// Public domain because I love you. Let me know how you use it.
//
#import <Cocoa/Cocoa.h>
@abackstrom
abackstrom / Makefile
Created November 2, 2010 09:45
CSS and JavaScript Minification/Compression Makefile
#
# css/js minification/compression makefile
#
#
# JS_TARGETS -- js files to minify/gzip
# CSS_TARGETS -- css files to minify/gzip
# CLEANUP -- additional files to delete during "make clean"
#
@aemkei
aemkei / LICENSE.txt
Last active April 12, 2024 21:27 — forked from 140bytes/LICENSE.txt
Binary Tetris - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@wearhere
wearhere / keep_current_file_open.sh
Created February 9, 2012 09:34
Keep your current source file open in Xcode after a run completes (a.k.a don't die in main.m)
#! /bin/sh
# On alternate invocations, this script
# saves the path of the source file currently open in Xcode
# and restores the file at that path in Xcode.
#
# By setting Xcode (in Behaviors) to run this script when "Run Starts"
# and when "Run Completes", you can prevent it from switching to main.m
# when a run finishes.
# See http://stackoverflow.com/questions/7682277/xcode-4-2-jumps-to-main-m-every-time-after-stopping-simulator
@florianbachmann
florianbachmann / gist:1798394
Created February 11, 2012 10:06 — forked from odrobnik/gist:1789418
Asynchronous Deletion
//
// DTAsyncFileDeleter.m
// DTFoundation
//
// Created by Oliver Drobnik on 2/10/12.
// Copyright (c) 2012 Cocoanetics. All rights reserved.
//
#import "DTAsyncFileDeleter.h"
@bkoell
bkoell / gist:2220183
Created March 27, 2012 20:59
MKMapView: relocating Google-Image and Copyright-Label
//example relocation implementation
- (void) relocate:(MKMapView*)map {
UIImageView *google = [self googleImageForMapView:map];
CGRect googleFrame = CGRectMake(google.frame.origin.x, 10.0, google.frame.size.width, google.frame.size.height);
[google setFrame:googleFrame];
UILabel *copyright = [self copyrightLabelForMapView:map];
CGRect copyrightFrame = CGRectMake(copyright.frame.origin.x, 10.0, copyright.frame.size.width, copyright.frame.size.height);
[copyright setFrame:copyrightFrame];
}
@erikh
erikh / hack.sh
Created March 31, 2012 07:02 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@sindresorhus
sindresorhus / LICENSE.txt
Created May 14, 2012 10:35 — forked from 140bytes/LICENSE.txt
View source - view the generated source of a page (140byt.es)
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2012 Sindre Sorhus <http://sindresorhus.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
# Uncrustify 0.59
#
# General options
#
# The type of line endings
newlines = auto # auto/lf/crlf/cr
# The original size of tabs in the input
@odrobnik
odrobnik / gist:2881890
Created June 6, 2012 13:34
WWDC 2012 Apps in Banner
Please help complete and sort this list. These are the icons visible in the WWDC 2012 Banner. Roughly sorted by size.
http://www.cocoanetics.com/files/WWDC2012_Banner.png
alternate, high res pictures of the Banner:
http://cdn.macrumors.com/article-new/2012/06/photo.jpg
Path - http://itunes.apple.com/us/app/path/id403639508?mt=8
Star Walk - http://itunes.apple.com/app/star-walk-guide-dastronomie/id295430577?mt=8
Instagram - http://itunes.apple.com/us/app/instagram/id389801252?mt=8