Put flip somewhere in your $PATH and chmod a+x it.
Copy fuck into ~/.bashrc.
| #import <Foundation/Foundation.h> | |
| @interface NSObject (AMAssociatedObjects) | |
| - (void)associateValue:(id)value withKey:(void *)key; // Retains value. | |
| - (id)associatedValueForKey:(void *)key; | |
| @end |
| #!/bin/sh | |
| echo "Stripping PPC from Growl framework..." | |
| cd "${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.app/Contents/Frameworks/Growl.framework/Versions/Current" | |
| lipo ./Growl -verify_arch ppc | |
| if test $? -ne 1 ; then | |
| lipo ./Growl -remove ppc -output ./Growl | |
| fi |
| - (void) scrollToVisible:(id)unused | |
| { | |
| // Only show bottom if we are already scrolled down at/near the bottom. | |
| NSScrollView *scrollView = [oLog enclosingScrollView]; | |
| NSPoint currentScrollPosition=[[scrollView contentView] bounds].origin; | |
| float diff = oLog.frame.size.height - (scrollView.contentSize.height + currentScrollPosition.y); | |
| if (diff < 50) // Seems like it's often 39 when we're at the bottom, so give some slack. | |
| { | |
| // [oLog scrollRangeToVisible:NSMakeRange([[oLog textStorage] length], 0)]; |
| #import <UIKit/UIKit.h> | |
| @interface UIView (SMFrameAdditions) | |
| @property (nonatomic, assign) CGPoint $origin; | |
| @property (nonatomic, assign) CGSize $size; | |
| @property (nonatomic, assign) CGFloat $x, $y, $width, $height; // normal rect properties | |
| @property (nonatomic, assign) CGFloat $left, $top, $right, $bottom; // these will stretch the rect | |
| @end |
| The enclosed config.xml file will instruct Jenkins to check out and build llvm + clang, archiving the resulting clang binary. | |
| The configuration will build daily and will retain builds for 5 days. | |
| To add it to your Jenkins install, just copy the config.xml file to e.g.: | |
| jobs/Clang/config.xml | |
| Then "reload configuration" in Jenkins, or stop and start Jenkins to reload it implicitly. |
| #!/usr/bin/ruby | |
| # This program is free software: you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation, either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| // Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
| // Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
| // Licensed under MIT (http://opensource.org/licenses/MIT) | |
| // | |
| // You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
| // PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit. | |
| #import <objc/runtime.h> | |
| #import <objc/message.h> |
| /// Observes a run loop to detect any stalling or blocking that occurs. | |
| /// | |
| /// This class is thread-safe. | |
| @interface GHRunLoopWatchdog : NSObject | |
| /// Initializes the receiver to watch the specified run loop, using a default | |
| /// stalling threshold. | |
| - (id)initWithRunLoop:(CFRunLoopRef)runLoop; | |
| /// Initializes the receiver to detect when the specified run loop blocks for |
| // Compile with clang -framework Foundation sethack.m | |
| #import <Foundation/Foundation.h> | |
| #import <objc/runtime.h> | |
| /* | |
| CFHashBytes from http://www.opensource.apple.com/source/CF/CF-1153.18/CFUtilities.c | |
| */ | |
| #define ELF_STEP(B) T1 = (H << 4) + B; T2 = T1 & 0xF0000000; if (T2) T1 ^= (T2 >> 24); T1 &= (~T2); H = T1; |