This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* @function Singleton GCD Macro | |
*/ | |
#ifndef SINGLETON_GCD | |
#define SINGLETON_GCD(classname) \ | |
\ | |
+ (classname *)shared##classname { \ | |
\ | |
static dispatch_once_t pred; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#------------------------- | |
# Import the dependencies | |
#------------------------- | |
import json, sys | |
#------------------------- | |
#------------------------------------- | |
# Get the file names from the argument |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# gdbGetStrippedSymbols.sh | |
# @author Dominik Hadl (@dominikhadl) | |
# @description This script automates the setup of gdb on a stripped applicaiton adds symbols. It uses objc-symbols to get the symbols, | |
# then SymTabCreator and finally creates a command that is automatically loaded into gdb on start. | |
# @license Licensed under WTFPL license (see http://www.wtfpl.net/txt/copying/ for full license). | |
# @dependencies | |
# 1. objc-symbols | |
# 2. SymTabCreator | |
# 3. gdb (really non-obvious) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# 7zJSON.sh | |
# @author Dominik Hadl | |
# @dependencies This script requires that you have p7zip package installed, prefferably through Homebrew. | |
# | |
# @description This script will automatically find all .json files in your $BUILT_PRODUCTS_DIR and will compress them to the LZMA (7z) format. | |
# In the process it will also delete the original .json files - but only in the build folder. | |
# | |
# @usage | |
# 1. Create a new build phase (Run script) in your target in Xcode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Photoshop Script to Create iPhone Icons from iTunesArtwork | |
// | |
// WARNING!!! In the rare case that there are name collisions, this script will | |
// overwrite (delete perminently) files in the same folder in which the selected | |
// iTunesArtwork file is located. Therefore, to be safe, before running the | |
// script, it's best to make sure the selected iTuensArtwork file is the only | |
// file in its containing folder. | |
// | |
// Copyright (c) 2010 Matt Di Pasquale | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write -g NSNavPanelExpandedStateForSaveMode -bool TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Photoshop Script to Create iOS 7 Icons from a PSD file | |
* Version: 1.0.1 (November 2013) | |
* | |
* Copyright (c) 2013 Dominik Hadl (@dominikhadl) | |
* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
branch=`git rev-parse --abbrev-ref HEAD` | |
version=`/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${INFOPLIST_FILE}"` | |
build=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${INFOPLIST_FILE}"` | |
function processIcon() | |
{ | |
export PATH=$PATH:/usr/local/bin | |
target_file="${1}" | |
if [[ ! -f ${target_file} || -z ${target_file} ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apps | |
---- | |
These are the apps I use most, either for fun or for developing. This list is basically a reference for me, if I reinstall or whatever I do, to know which apps I have used before and what were their names. | |
* Postbox | |
* Spotify | |
* Photoshop CC | |
* Skype | |
* Skala Preview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>DVTConsoleDebuggerInputTextColor</key> | |
<string>1 1 1 1</string> | |
<key>DVTConsoleDebuggerInputTextFont</key> | |
<string>Menlo-Bold - 11.0</string> | |
<key>DVTConsoleDebuggerOutputTextColor</key> | |
<string>1 1 1 1</string> |
OlderNewer