This file contains hidden or 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
// Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
// Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
// Licensed under MIT (http://opensource.org/licenses/MIT) | |
// | |
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
#import <objc/runtime.h> | |
#import <objc/message.h> | |
// Compile-time selector checks. |
This file contains hidden or 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
$turquoise: #1abc9c; | |
$emerland: #2ecc71; | |
$peter-river: #3498db; | |
$amethyst: #9b59b6; | |
$wet-asphalt: #34495e; | |
$green-sea: #16a085; | |
$nephritis: #27ae60; | |
$belize-hole: #2980b9; | |
$wisteria: #8e44ad; | |
$midnight-blue: #2c3e50; |
This file contains hidden or 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
NSLog(@"%s : %d %s, %@", __FILE__ ,__LINE__, __FUNCTION__, <#log#>); |
This file contains hidden or 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
CAGradientLayer *gradient = [CAGradientLayer layer]; | |
gradient.frame = cell.backgroundView.frame; | |
UIColor* lightColor = [[UIColor blackColor] colorWithAlphaComponent:0.0]; | |
UIColor* darkColor = [[UIColor blackColor] colorWithAlphaComponent:0.3]; | |
gradient.colors = @[(id)darkColor.CGColor, (id)lightColor.CGColor]; | |
gradient.locations = @[@0.0, @1.0]; |
This file contains hidden or 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
<style> selector{ max-width:100px; } </style> | |
<!--[if IE 6]> | |
<style> | |
selector{ _width:expression(this.width>100?(function(dom){dom.style.width='100px';})(this):'auto');} </style> | |
<![endif]--> | |
<!-- NOTICE: target element must NOT set width or height attribute, or this doesn't work --> | |
<!-- I made a Sublime Text snippet, maybe can also use in TextMate --> |