Skip to content

Instantly share code, notes, and snippets.

@RoyalIcing
RoyalIcing / Example.md
Last active August 29, 2015 14:02
PHP burntCheck()

Instead of doing:

$name = !empty($json['name']) ? $json['name'] : null;

just do:

$name = burntCheck($json['name']);
http://www.adobe.com/digitalimag/pdfs/phscs2ip_colspace.pdf
@RoyalIcing
RoyalIcing / gist:9580574
Created March 16, 2014 09:19
Inline SVG in CSS using Compass/SCSS
@mixin searchButtonImage
{
background-image: inline-image('infinitylist/svg/search-icon.svg', unquote('image/svg+xml'));
background-repeat: no-repeat;
}
@RoyalIcing
RoyalIcing / TFFTagging
Created October 5, 2013 05:56
An example of how syncing tags could be made hopefully easier by separating a tag into two objects: - One that is recorded to the database, with a unique identifier. - And one that the are assigned to notes, which then points to a recorded tag.
@protocol TFFTagging
@property (readonly, nonatomic) NSString *name;
@end
// Tags in sidebar UI use TFFRecordedTag
// Tags in notes UI use TFFAttachableTag
// Same interface for what makes a tag, which is its name.