Skip to content

Instantly share code, notes, and snippets.

@fastred
fastred / gist:4fd2b6b98d5d2685bf88
Created May 28, 2014 17:09
Centering title label in AHKActionSheet
NSMutableParagraphStyle *paragraph = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
paragraph.alignment = NSTextAlignmentCenter;
actionSheet.titleTextAttributes = @{ NSParagraphStyleAttributeName : [paragraph copy],
NSFontAttributeName : [UIFont systemFontOfSize:14.0f],
NSForegroundColorAttributeName : [UIColor grayColor] };
# filename: config/locales/pl.rb
# taken from: http://github.com/svenfuchs/i18n/blob/4d8e2e3b8ce9841542cc3cf4d33b7a7702b2abc1/test/test_data/locales/plurals.rb
{:pl => { :i18n => { :plural => { :keys => [:one, :few, :other], :rule => lambda { |n| n == 1 ? :one : [2, 3, 4].include?(n % 10) && ![12, 13, 14].include?(n % 100) && ![22, 23, 24].include?(n % 100) ? :few : :other } } } } }
/*
* truncatable 1.2.1 - jQuery lightwieght text truncation plugin
*
* Copyright (c) 2009 Philip Beel (http://www.theodin.co.uk/) - modified by Arkadiusz Holko - http://holko.pl
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Revision: $Id: jquery.truncatable.js 2010-07-27 $
*
*/