Skip to content

Instantly share code, notes, and snippets.

Jörg Bühmann orkoden

Block or report user

Report or block orkoden

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View reallyCleanXcode.rb
# run with
# ruby reallyCleanXcode.rb
derivedDataFolder = Dir.glob(Dir.home + "/Library/Developer/Xcode/DerivedData/*")
moduleCache = Dir.glob("/var/folders/**/com.apple.DeveloperTools*")
FileUtils.rm_rf derivedDataFolder + moduleCache
@orkoden
orkoden / demotask.swift
Last active Apr 23, 2019
swift solution to codility demo task
View demotask.swift
// MissingInteger
// Find the smallest positive integer that does not occur in a given sequence.
//This is a demo task.
//
//Write a function:
//
//public func solution(_ A : inout [Int]) -> Int
//
//that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A.
@orkoden
orkoden / fishytitles.m
Last active Apr 23, 2019
Swizzle all UIViewController titles to fish emoji 🐠
View fishytitles.m
IMP titleImp = imp_implementationWithBlock(^NSString *(__unsafe_unretained id foo){
return @"🐠";
});
SEL titleSelector = NSSelectorFromString(@"title");
Method existingTitle = class_getInstanceMethod([UIViewController class],
titleSelector);
method_setImplementation(existingTitle,
titleImp);
@orkoden
orkoden / tddberlin_iOS_notes.md
Last active May 7, 2019
Notes from TDD iOS Notes
View tddberlin_iOS_notes.md

TDD Workshop Notes

http://tdd-workshop.uikonf.com

Twitter hashtag #tddberlin

Mobile Central Europe Conference in Warsaw in Feb 2015

Resources

Reading

@orkoden
orkoden / karabiner.json.magicforce68
Created Feb 9, 2017
Karabiner elements configuration file for using a MagicForce68 keyboard on macOS
View karabiner.json.magicforce68
{
"profiles": [
{
"devices": [
{
"disable_built_in_keyboard_if_exists": false,
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 1957,
@orkoden
orkoden / hide or show desktop icons.applescript
Last active Jun 25, 2019
AppleScript to hide your messy desktop icons during presentations for Mac OS X.
View hide or show desktop icons.applescript
display dialog "Desktop icons visible or hidden?" buttons {"Visible", "Hidden"} with icon 2 with title "Switch to presentation mode" default button 1
set switch to button returned of result
if switch is "Hidden" then
do shell script "defaults write com.apple.finder CreateDesktop -bool FALSE;killall Finder"
else
do shell script "defaults delete com.apple.finder CreateDesktop;killall Finder"
end if
You can’t perform that action at this time.