Skip to content

Instantly share code, notes, and snippets.

View stigi's full-sized avatar
✌️
Casual coding

Ullrich Schäfer stigi

✌️
Casual coding
View GitHub Profile
@eternalstorms
eternalstorms / Apple Evangelists.txt
Created June 12, 2013 09:07
Apple Evangelists (WWDC 2013)
UI- and App Frameworks Evangelist - Jake Behrens, behrens@apple.com, twitter: @Behrens
- What's new in Cocoa
- Accessibility in iOS
- Building User Interfaces for iOS 7
- Getting Started with UIKit Dynamics
- What's new in Cocoa Touch
- What's New With Multitasking
- Best Practices for Cocoa Animation
- Improving Power Efficiency with App Nap
- Introducing Text Kit
@calimarkus
calimarkus / validateRetinaImages.py
Last active December 14, 2015 23:59
validate Retina image sizes (they have to be even in width & height and @1x has to be half sized of @2x version)
import os, sys, glob
# logging methods
def printRed(msg):
print "\x1B[" + "31;40m" + msg + "\x1B[0m"
def printGreen(msg):
print "\x1B[" + "32;40m" + msg + "\x1B[0m"
# check for argument
if len(sys.argv) <= 1 :
-- Close annoying notification windows that you can't Cmd+Tab to.
-- From: http://www.mentby.com/stockly-ed/window-watcher.html
tell application "System Events"
try
set unc to application process "UserNotificationCenter"
activate unc
set uncw to window 1 of unc
repeat with label in {"OK", "Close", "Ignore", "Cancel"}
try
p 'Learn everything you need to know about %s by watching %s.' % [
[ 'programming', 'gardening' ],
[ 'The Simpsons', 'The Wire', 'Futurama' ],
].map(&:sample)
# >> "Learn everything you need to know about gardening by watching Futurama."
@ryanmaxwell
ryanmaxwell / ryan-objc.cfg
Last active June 26, 2019 16:41
Objective-C Uncrustify Config
#
# Uncrustify Configuration File
# File Created With UncrustifyX 0.2 (140)
#
# Alignment
# ---------
## Alignment
@mattt
mattt / NSHipster-Call-For-Tricks-And-Tips.md
Created November 26, 2012 13:59
NSHipster Call for Tips & Tricks!

Howdy howdy, NSHipsters!

If you alloc init an NSCalendar, you'll notice that New Year's Eve falls on a Monday this year, a.k.a. "the day NSHipster is published every week". What fun!

So in celebration of the upcoming year++, I thought it'd be fun to compile a list of some of your favorite tips and tricks of the trade. Submit your favorite piece of Objective-C trivia, framework arcana, hidden Xcode feature, or anything else you think is cool, and you could have it featured in the year-end blowout article. Just comment on this gist below!

Here are a few examples of the kind of things I'd like to see:

@akritiko
akritiko / point_in_polygon.js
Last active May 24, 2018 08:19
Point-in-polygon: Jordan Curve Theorem (JS)
/**
* Point-in-polygon based on Jordan Curve Theorem
*
* Checks whether a point with a specific lat, long coordinates is inside
* a polygon defined by a given set of points. You can find more information
* about the Jordan Curve Theorem to:
* http://en.wikipedia.org/wiki/Jordan_curve_theorem
*
* The algorithm, originally implemented in c/c++ and can be found to
* http://sidvind.com/wiki/Point-in-polygon:_Jordan_Curve_Theorem.
@stigi
stigi / wwdc 2012 events.md
Created June 10, 2012 15:18
WWDC Events

WWDC Events

Sunday

SF Mac Indie

  • Jillian's
    101 4th St
    San Francisco

  • 5:00 to 9:00 PM, Sunday, June 10, 2012

@fjolnir
fjolnir / tlc.lua
Last active February 15, 2024 15:01
LuaJIT ObjC bridge
The bridge is now located at https://github.com/fjolnir/TLC
@jonathanpenn
jonathanpenn / unix_instruments.sh
Last active January 26, 2016 19:09
Make Instruments play nice with unix by returning > 0 status code if build fails
#!/usr/bin/env bash
#
# Copyright (c) 2013 Jonathan Penn (http://cocoamanifest.net)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions: