Skip to content

Instantly share code, notes, and snippets.

rupey

  • AppJourney
  • Sydney
Block or report user

Report or block rupey

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
@rupey
rupey / FeedbackViewController.m
Last active Jan 7, 2016
Capturing customer feedback with a device log on iOS
View FeedbackViewController.m
#import <UIKit/UIKit.h>
#import <MessageUI/MessageUI.h>
#include <asl.h>
@interface FeedbackViewController : UIViewController <MFMailComposeViewControllerDelegate>
@property (nonatomic, strong) IBOutlet UITextView *textView;
@property (nonatomic, strong) NSString *feedbackType;
@end
@rupey
rupey / mandelbrot.sql
Last active Jan 12, 2019
Mandelbrot plot in postgres
View mandelbrot.sql
WITH RECURSIVE
x(i) AS ( VALUES (0)
UNION ALL SELECT i + 1
FROM x
WHERE i < 101),
Z(Ix, Iy, Cx, Cy, X, Y, I) AS (
SELECT
Ix,
Iy,
X :: FLOAT,
@rupey
rupey / gist:f1429adab0877506c9fb
Created Aug 10, 2014
iTunes Store API rating count retriever snippet
View gist:f1429adab0877506c9fb
#pragma mark - iTunes Store API
#define ITUNES_APP_ID @"870393074"
- (void)updateReviewCount
{
NSString *countryCode = [[[NSLocale currentLocale] objectForKey: NSLocaleCountryCode] lowercaseString];
NSString *url = [NSString stringWithFormat:@"https://itunes.apple.com/%@/lookup?id=%@", countryCode, ITUNES_APP_ID];
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
You can’t perform that action at this time.