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
#Stripe platform key | |
stripe.api_key = pmsconstants._STRIPE_SECRET_KEY | |
#Create the Stripe managed account | |
stripeAccount = stripe.Account.create( | |
country='US', | |
managed=True, | |
email=member.emailaddress | |
) |
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
//when hovering, change the cover and move the element up a few pixels | |
color: #9ed846; | |
transform: translate(0,-4px); | |
-webkit-transform: translate(0,-4px); | |
-o-transform: translate(0,-4px); | |
-moz-transform: translate(0,-4px); | |
-webkit-transition: all 0.5s ease-in-out; | |
-moz-transition: all 0.5s ease-in-out; | |
-o-transition: all 0.5s ease-in-out; | |
-ms-transition: all 0.5s ease-in-out; |
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
from google.appengine.ext.webapp import blobstore_handlers | |
blobstore.create_upload_url('some URL of yours') | |
class SubmitNewPropp(blobstore_handlers.BlobstoreUploadHandler): | |
def post(self): | |
inputUploads = self.get_uploads() | |
inputUploadedHybridFile = inputUploads[0] | |
blobkey = str(inputUploadedHybridFile.key()) | |
<video width="420" height="420"> |
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
def head(self): | |
#this allows twitter callback to work | |
#https://dev.twitter.com/docs/tweet-button/faq#count-api-increment | |
return | |
$ curl -I http://www.proppitup.com |
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
appcfg.py --oauth2 request_logs proppitup/ C:\Temp\mylogs.txt --num_days=5 |
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
UIView *activityContainer = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)]; | |
activityContainer.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:.25]; | |
UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake((self.view.frame.size.width/2) - 40, (self.view.frame.size.height/2) - 40, 80, 80)]; | |
indicator.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge; | |
indicator.backgroundColor = [UIColor blackColor]; | |
[indicator layer].cornerRadius = 8.0; | |
[indicator layer].masksToBounds = YES; | |
[indicator startAnimating]; | |
[activityContainer addSubview:indicator]; | |
[self.view addSubview:activityContainer]; |
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
Here’s how you can run it on a Windows machine, but works quite well on Linux too (or Cygwin). | |
C:\>python -m SimpleHTTPServer | |
Serving HTTP on 0.0.0.0 port 8000 ... |
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
[self performSegueWithIdentifier:@"SegueHomeToOwnerDetail" sender:self]; | |
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { | |
if ([[segue identifier] isEqualToString:@"SegueHomeToOwnerDetail"]) { | |
NSLog(@"prepareForSegue called for SegueHomeToOwnerDetail"); | |
NSIndexPath *selectedRowIndex = [self.tableView indexPathForSelectedRow]; | |
OwnerViewController *ownerViewController = [segue destinationViewController]; | |
ownerViewController.myObject = [_activeArray objectAtIndex:selectedRowIndex.row]; | |
} else { | |
NSLog(@"prepareForSegue called for SegueHomeToParticipantDetail"); |
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
#import "QuartzCore/QuartzCore.h" | |
// Round corners using CALayer property | |
[[_aboutWebView layer] setCornerRadius:10]; | |
[_aboutWebView setClipsToBounds:YES]; | |
// Create colored border using CALayer property | |
[[_aboutWebView layer] setBorderColor: | |
[[UIColor colorWithRed:0.52 green:0.09 blue:0.07 alpha:1] CGColor]]; | |
[[_aboutWebView layer] setBorderWidth:2.75]; |
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
NSString *urlAddress = @"http your url goes here"; | |
//Create a URL object. | |
NSURL *url = [NSURL URLWithString:urlAddress]; | |
//URL Requst Object | |
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]; | |
//Load the request in the UIWebView. | |
[_aboutWebView loadRequest:requestObj]; |
NewerOlder