Skip to content

Instantly share code, notes, and snippets.

View matthewryan's full-sized avatar

Matthew Ryan matthewryan

View GitHub Profile
@matthewryan
matthewryan / VGAStrokedLabel
Created September 28, 2012 10:22
Simple stroked label by overriding drawInRect:
- (void)drawTextInRect:(CGRect)rect {
CGContextRef c = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(c, self.shadowOffset.height);
CGContextSetLineJoin(c, kCGLineJoinRound);
CGContextSetTextDrawingMode(c, kCGTextStroke);
[self.shadowColor set];
[self.text drawInRect:rect withFont:self.font lineBreakMode:self.lineBreakMode alignment:self.textAlignment];
CGContextSetTextDrawingMode(c, kCGTextFill);
@matthewryan
matthewryan / gist:5094416
Created March 5, 2013 21:24
List of all GitHub supported emoji
:bowtie:
:smile:
:laughing:
:blush:
:smiley:
//
// RSPlayPauseButton.h
//
// Created by Raphael Schaad on 2014-03-22.
// This is free and unencumbered software released into the public domain.
//
#import <UIKit/UIKit.h>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@matthewryan
matthewryan / _.md
Created November 5, 2017 11:17 — forked from tschaub/_.md
TopoJSON Time Zones

TopoJSON Time Zones

The result is this 181 KB timezones.json (36 KB with gzip)