-
SMILEYS & PEOPLE
๐๐ฌ๐๐๐๐๐ ๐๐๐๐๐๐
โบ๏ธ ๐๐๐๐๐๐๐๐๐๐๐ค๐ค๐๐ค๐๐ถ๐๐๐๐๐ค๐ณ๐๐๐ ๐ก๐๐๐โน๏ธ ๐ฃ๐๐ซ๐ฉ๐ค๐ฎ๐ฑ๐จ๐ฐ๐ฏ๐ฆ๐ง๐ข๐ฅ๐ช๐๐ญ๐ต๐ฒ๐ค๐ท๐ค๐ค๐ด๐ค๐ฉ๐๐ฟ๐น๐บ๐ป๐โ ๏ธ๐ฝ๐พ๐ค๐บ๐ธ๐น๐ป๐ผ๐ฝ๐๐ฟ๐พ๐๐๐๐๐โ๐๐๐๐๐๐โ๏ธโ๏ธโ๐๐๐ช๐๐๐ค๐โ๏ธ๐ ๐๐ ๐๐๐๐๐ฃ๐ค๐ฅ๐ถ๐ฆ๐ง๐จ๐ฉ๐ฑโโ๏ธ๐ฑ๐ด๐ต๐ฒ๐ณโโ๏ธ๐ณ๐ฎโโ๏ธ๐ฎ๐ทโโ๏ธ๐ท๐โโ๏ธ๐๐ต๏ธโโ๏ธ๐ต๐ ๐ธ๐ฐ๐ฐ๐ผ๐ผ๐โโ๏ธ๐๐๐โโ๏ธ๐ ๐ โโ๏ธ๐๐โโ๏ธ๐๐โโ๏ธ๐๐โโ๏ธ๐๐โโ๏ธ๐๐โโ๏ธ๐๐โโ๏ธ๐๐ฏ๐ฏโโ๏ธ๐ถโโ๏ธ๐ถ๐โโ๏ธ๐๐ซ๐ญ๐ฌ๐๐ฉโโค๏ธโ๐ฉ๐จโโค๏ธโ๐จ๐๐ฉโโค๏ธโ๐โ๐ฉ๐จโโค๏ธโ๐โ๐จ๐ช๐จโ๐ฉโ๐ง๐จโ๐ฉโ๐งโ๐ฆ๐จโ๐ฉโ๐ฆโ๐ฆ๐จโ๐ฉโ๐งโ๐ง๐ฉโ๐ฉโ๐ฆ๐ฉโ๐ฉโ๐ง๐ฉโ๐ฉโ๐งโ๐ฆ๐ฉโ๐ฉโ๐ฆโ๐ฆ๐ฉโ๐ฉโ๐งโ๐ง๐จโ๐จโ๐ฆ๐จโ๐จโ๐ง๐จโ๐จโ๐งโ๐ฆ๐จโ๐จโ๐ฆโ๐ฆ๐จโ๐จโ๐งโ๐ง๐ฉโ๐ฆ๐ฉโ๐ง๐ฉโ๐งโ๐ฆ๐ฉโ๐ฆโ๐ฆ๐ฉโ๐งโ๐ง๐จโ๐ฆ๐จโ๐ง๐จโ๐งโ๐ฆ๐จโ๐ฆโ๐ฆ๐จโ๐งโ๐ง๐๐๐๐๐๐๐๐๐๐ฃ๐ ๐ก๐ข๐๐๐๐ฉ๐๐โ๐๐๐๐๐ผ๐๐ถ๐๐ -
ANIMALS & NATURE
๐ถ๐ฑ๐ญ๐น๐ฐ๐ป๐ผ๐จ๐ฏ๐ฆ๐ฎ๐ท๐ฝ๐ธ๐๐ต๐๐๐๐๐๐ง๐ฆ๐ค๐ฃ๐ฅ๐บ๐๐ด๐ฆ๐๐๐๐๐๐ท๐ฆ๐ฆ๐๐ข๐ ๐๐ก๐ฌ๐ณ๐๐๐๐ ๐๐๐๐ช๐ซ๐๐๐๐๐๐๐๐๐๐ฆ๐๐๐ฉ๐๐๐ฟ๐พ๐๐ฒ๐ต๐๐ฒ๐ณ๐ด๐ฑ๐ฟโ๏ธ๐๐๐๐๐๐๐พ๐บ๐ป๐น๐ท๐ผ๐ธ๐๐๐ฐ๐๐๐ธ๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐โญ๏ธ๐๐ซโจโ๏ธโ๏ธ๐คโ ๏ธ๐ฅ๐ฆโ๏ธ๐งโ๐ฉโก๏ธ๐ฅ๐ฅโ๏ธ๐จโ๏ธโ๏ธ๐ฌ๐จ๐ช๐ซโ๏ธโ๏ธ๐ง๐ฆ๐
This file contains 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
// | |
// NSObject+Cool.h | |
// PatriciaTest | |
// | |
// Created by croath on 7/18/16. | |
// Copyright ยฉ 2016 Croath. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <Availability.h> |
This file contains 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
@"i386" on 32-bit Simulator | |
@"x86_64" on 64-bit Simulator | |
@"iPod1,1" on iPod Touch | |
@"iPod2,1" on iPod Touch Second Generation | |
@"iPod3,1" on iPod Touch Third Generation | |
@"iPod4,1" on iPod Touch Fourth Generation | |
@"iPod7,1" on iPod Touch 6th Generation | |
@"iPhone1,1" on iPhone | |
@"iPhone1,2" on iPhone 3G | |
@"iPhone2,1" on iPhone 3GS |
This file contains 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
NSURL *rtfPath = [[NSBundle mainBundle] URLForResource: @"description_ar" withExtension:@"rtf"]; | |
NSAttributedString *attributedStringWithRtf = [[NSAttributedString alloc] initWithFileURL:rtfPath options:@{NSDocumentTypeDocumentAttribute:NSRTFTextDocumentType} documentAttributes:nil error:nil]; | |
self.textView.attributedText=attributedStringWithRtf; |
This file contains 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
def ruby_pearson(x,y) | |
n=x.length | |
sumx=x.inject(0) {|r,i| r + i} | |
sumy=y.inject(0) {|r,i| r + i} | |
sumxSq=x.inject(0) {|r,i| r + i**2} | |
sumySq=y.inject(0) {|r,i| r + i**2} | |
prods=[]; x.each_with_index{|this_x,i| prods << this_x*y[i]} |
This file contains 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
var mc:CUnsignedInt = 0 | |
var mlist:UnsafePointer<Method> = class_copyMethodList(UIImageView.classForCoder(), &mc); | |
println("\(mc) methods") | |
for var i:CUnsignedInt = 0; i < mc; i++ { | |
println("Method #\(i): \(sel_getName(method_getName(mlist.memory)))") | |
mlist = mlist.succ() | |
} |
This file contains 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*)findAllLabelsOfView:(UIView*)view{ | |
NSMutableArray *array = [NSMutableArray array]; | |
NSArray *subViews = view.subviews; | |
if ([view isKindOfClass:[UILabel class]]) { | |
[array addObject:view]; | |
} | |
if (subViews.count) { | |
[subViews enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { | |
[array addObjectsFromArray:[self findAllLabelsOfView:obj]]; | |
}]; |
This file contains 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
require 'fileutils' | |
class String | |
def numeric? | |
return true if self =~ /^\d+$/ | |
true if Float(self) rescue false | |
end | |
end | |
def remove_app (app_name) |
This file contains 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
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)\ | |
print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" \ | |
| column -c3 -s " " -t | sort -nr | nl | head -n10 |
This file contains 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
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_5_0 | |
//awesome! need to check usr/include/AvailabilityInternal.h |
NewerOlder