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
// | |
// EGOTitledTableViewCell.h | |
// EGOClasses | |
// | |
// Created by Shaun Harrison on 6/2/09. | |
// Copyright 2009 enormego. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
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/env ruby -w | |
# | |
# This is a script to help view a patch file in the Changes.app[1] UI. It is | |
# pretty basic, but does the job. It simply creates 2 copies of the file, | |
# where in one (the "original") it strips all the lines starting with '+', and | |
# the other (the "modified") it strips all the lines starting with '-'. It | |
# also removes the first character of all lines starting with a space, +, or - | |
# Then it simply uses the chdiff command line too to view the differences. | |
# | |
# It takes input either from filename arguments (multiple files are ok, but it |
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
find . -name "*.php" -exec php -l {} \; | grep "PHP Parse error:" |
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
<?php | |
function isReallyAnInt($obj) | |
{ | |
if (!is_numeric($obj)) | |
return false; | |
if (intval($obj) != floatval($obj)) | |
return false; | |
return 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
{ scopeName = 'source.php'; | |
comment = "TODO: | |
• Try to improve parameters list syntax – scope numbers, ‘=’, ‘,’ and possibly be intelligent about entity ordering | |
• Is meta.function-call the correct scope? I've added it to my theme but by default it's not highlighted"; | |
firstLineMatch = '^#!.*(?<!-)php[0-9]{0,1}\b'; | |
foldingStartMarker = '(/\*|\{\s*$|<<<HTML)'; | |
foldingStopMarker = '(\*/|^\s*\}|^HTML;)'; | |
patterns = ( | |
{ comment = 'Matches empty tags.'; | |
match = '(?x) |
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
Pod::Spec.new do |s| | |
s.summary = 'A simple iPhone forms library' | |
s.license = 'Apache License, Version 2.0' | |
s.source = { :git => 'https://github.com/ittybittydude/IBAForms.git', :tag => '1.0.0' } | |
s.source_files = 'library/**/*.{h,m}' | |
s.author = { 'Itty Bitty Apps' => '[email protected]' } | |
s.version = '1.0.0' | |
s.homepage = 'https://github.com/ittybittydude/IBAForms' | |
s.name = 'IBAForms' | |
s.platform = :ios |
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
enum ClassNameResult { | |
ClassNameResultAborted, | |
ClassNameResultSuccessful, | |
ClassNameResult… | |
}; | |
typedef enum ClassNameResult ClassNameResult; |
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/env perl | |
# objc_api_visibility.pl | |
# by Ryan Petrich, inspired by Dustin Howett's Logos | |
# Reads all Objective-C method names from an installed SDK, determines their visibility and optionally compares against an iOS app binary | |
sub read_methods { | |
my $cmd = shift; | |
my $when_found = shift; | |
my $current_class; | |
open(LS_CMD, "$cmd |") or die "Can't run '$cmd'\n$!\n"; |
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
-(void)crashQueue { | |
dispatch_queue_t webviewQueue = dispatch_queue_create("de.company.myCrashQueue", DISPATCH_QUEUE_SERIAL); | |
_webviewQueueValid = YES; | |
// NSLog(self.company); | |
dispatch_async(webviewQueue, ^{ | |
if (_webviewQueueValid) { | |
NSURL *companyURL = [NSURL URLWithString:[companyURI stringByAppendingFormat:@"%@.html", self.company.pathName]]; | |
NSMutableURLRequest *requestCompany = [NSMutableURLRequest requestWithURL:companyURL]; | |
[self.companyWebView loadRequest:requestCompany]; |
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
- (void)maskUIViewHorizontally:(UIView *)view { | |
view.layer.mask = nil; | |
_maskLayer = nil; | |
if (!_maskLayer) { | |
_maskLayer = [CAGradientLayer layer]; | |
UIColor *outerColor = [UIColor colorWithWhite:1.0 alpha:0.0]; // transparent | |
UIColor *innerColor = [UIColor colorWithWhite:1.0 alpha:1.0]; // opaque | |
OlderNewer