Skip to content

Instantly share code, notes, and snippets.

Sathya Narayanan sathya-me

Block or report user

Report or block sathya-me

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
@sathya-me
sathya-me / editor.html
Created Feb 1, 2013
Browser Text Editor
View editor.html
<body contenteditable>
@sathya-me
sathya-me / oc_graphics_scale
Created Jun 27, 2012
CGGraphics for scaling
View oc_graphics_scale
UIView *box = [[UIView alloc] initWithFrame:CGRectMake(50, 100, 220, 260)];
box.backgroundColor = [UIColor greenColor];
[self.view addSubview:box];
UIView *subBox = [[UIView alloc] initWithFrame:CGRectMake(50, 100, 120, 60)];
subBox.backgroundColor = [UIColor redColor];
[box addSubview:subBox];
box.transform = CGAffineTransformMakeScale(1.5, 1.5 );
You can’t perform that action at this time.