Public Gists by skabber

Gravatar
Thu Oct 01 17:05:10 -0700 2009
1
2
3
UIImage *im = [UIImage imageNamed:@"my-image-name.jpg"];
UIImageView *uiimv = [[UIImageView alloc] initWithImage:im];
[uiimv.layer setMasksToBounds:YES];
Gravatar
Tue Aug 11 16:21:15 -0700 2009
1
2
3
from boto.s3 import Connection, Key
import sys
 
Gravatar
Mon Aug 03 21:09:26 -0700 2009
1
2
3
+(UIImage *)makeRoundCornerImage : (UIImage*) img : (int) cornerWidth : (int) cornerHeight
{
UIImage * newImage = nil;
Gravatar
Sun Mar 29 22:19:43 -0700 2009
1
2
3
# install virtualenv virtualenvwrapper into the global python path
easy_install virtualenv
easy_install virtualenvwrapper
Gravatar
Fri Feb 20 12:54:30 -0800 2009
1
2
3
<div id="postbody">
<div style="float:left;padding-right:5px;">
<a href="{% url profiles.views.profile post.sender.username %}"><b>{{ post.sender }}</b></a>:
Gravatar
Wed Jan 28 09:50:45 -0800 2009
1
2
3
// URL scheme: http://gist.github.com/*
// API endpoint: http://gist.github.com/services/oembed/
// Example call: http://gist.github.com/services/oembed/?url=http%3A//gist.github.com/54099
Gravatar
Mon Jan 26 16:22:55 -0800 2009
1
2
3
# Just a reminder to myself of how to write a decorator class for Django urls.
 
from functools import update_wrapper
Gravatar
Sun Nov 30 13:22:05 -0800 2008
1
2
3
try:
    import cPickle as pickle
except ImportError: