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
# Generates a thumbnail image and returns its path, given a path to the full image. | |
# Hacked from various existing plugins, particularly: | |
# https://github.com/mrdanadams/jekyll-thumbnailer/blob/master/thumbnail.rb | |
# https://github.com/10io/jekyll-thumbnailify/blob/master/jekyll-thumbnailify.rb | |
# | |
# Doesn't require ImageMagick, and instead uses the Apple Developer tool sips, so | |
# only works when generated on a Mac. Could easily replace sips with ImageMagick again. | |
# | |
# Usage: | |
# |
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
NSArray *array = @[@"a", @"b"]; | |
if( array.count - 3 >= 5 ) { | |
NSLog(@"Big!"); | |
} else { | |
NSLog(@"Small!"); | |
} | |
// --> Big! |
NewerOlder