This file contains hidden or 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
| import UIKit | |
| protocol BehaviorableViewController { | |
| var behaviors: [ViewControllerLifecycleBehavior] { get } | |
| } | |
| protocol ViewControllerLifecycleBehavior { | |
| func afterLoading(_ viewController: UIViewController) | |
| func beforeAppearing(_ viewController: UIViewController) |
This file contains hidden or 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/bash | |
| # Fix source file header by removing current header and inserting standard copyright notice | |
| # Works for all C-based files, uses // comment style, current year and specified company name | |
| # Doesn't work for empty files | |
| # Temp directory | |
| TMP_DIR=$(mktemp -dt "XXXXXXXX") | |
| # Log |
This file contains hidden or 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 | |
| # Create a RAM disk with same perms as mountpoint | |
| # Script based on http://itux.idev.pro/2012/04/iservice-speed-up-your-xcode-%D0%BD%D0%B5%D0%BA%D0%BE%D1%82%D0%BE%D1%80%D1%8B%D0%B5-%D1%81%D0%BF%D0%BE%D1%81%D0%BE%D0%B1%D1%8B/ with some additions | |
| # Usage: sudo ./xcode_ramdisk.sh start | |
| USERNAME=$(logname) | |
| TMP_DIR="/private/tmp" | |
| RUN_DIR="/var/run" |
This file contains hidden or 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
| // | |
| // CommonMacros.h | |
| // Created by Tom Adriaenssen (@inferis) | |
| // Inspired by the awesome work by Piet Jaspers (@pjaspers) | |
| // | |
| /* | |
| * How to use this file: | |
| * 1. Find your .pch file | |
| * 2. Import this file |
This file contains hidden or 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
| # This script is based on the script provided at http://stackoverflow.com/questions/9258344/xcode-better-way-of-incrementing-build-number | |
| # The only difference is, that it uses hexadecimal build numbers instead of decimal ones. | |
| # For instructions on how to use this script, see the link above. | |
| #!/bin/sh | |
| if [ $# -ne 1 ]; then | |
| echo usage: $0 plist-file | |
| exit 1 |
This file contains hidden or 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
| import os.path as path | |
| import string | |
| import argparse | |
| import glob | |
| import re | |
| def basename(filename): | |
| base = filename | |
| if filename.find('@2x') > 0: | |
| base = filename[:filename.find('@2x')] |
This file contains hidden or 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
| -- Turkce isimler sozlugu twitter : http://twitter.com/baskindev | |
| CREATE TABLE `isimler` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `isimler` varchar(255) DEFAULT NULL, | |
| `cinsiyet` varchar(255) DEFAULT NULL COMMENT 'erkek : E , kadın : K , uniseks : U', | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=InnoDB; | |
| -- ---------------------------- |
This file contains hidden or 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
| // | |
| // BaseViewController.m | |
| // | |
| // Created by Peter Boctor on 5/4/11. | |
| // | |
| // Copyright (c) 2011 Peter Boctor | |
| // | |
| // 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 |
This file contains hidden or 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
| // | |
| // KSDIdlingWindow.h | |
| // | |
| // Created by Brian King on 4/13/10. | |
| // Copyright 2010 King Software Designs. All rights reserved. | |
| // | |
| // Based off: | |
| // http://stackoverflow.com/questions/273450/iphone-detecting-user-inactivity-idle-time-since-last-screen-touch | |
| // |