Skip to content

Instantly share code, notes, and snippets.

View PaulTaykalo's full-sized avatar

Paul Taykalo PaulTaykalo

View GitHub Profile
{
"name": "ReactiveCocoa",
"version": "2.4.1",
"summary": "A framework for composing and transforming streams of values.",
"homepage": "https://github.com/blog/1107-reactivecocoa-is-now-open-source",
"authors": {
"Josh Abernathy": "[email protected]"
},
"source": {
"git": "https://github.com/ReactiveCocoa/ReactiveCocoa.git",
license = <<EOT
Developer's use of the SDK is governed by the license in the applicable Flurry Terms of Service. Some components of the SDK are governed by open source software licenses. In the event of any conflict between the license in the applicable Flurry Terms of Service and the applicable open source license, the terms of the open source license shall prevail with respect to those components.
EOT
Pod::Spec.new do |s|
s.name = 'FlurrySDK'
s.version = '6.4.0'
s.license = { :type => 'Commercial', :text => license }
s.summary = 'FlurrySDK for analytics tracking and reporting. Also Ads included'
s.homepage = 'http://www.flurry.com'
@PaulTaykalo
PaulTaykalo / updateForInjection
Created June 2, 2015 10:14
Update for inection mehtod for ComponentKit
#import <ComponentKit/CKComponentScopeRoot.h>
#import <ComponentKit/CKComponentViewInterface.h>
@implementation FrostedQuoteComponent(Private)
- (void)updateOnClassInjection {
dispatch_async(dispatch_get_main_queue(), ^{
id comp = self;
while (comp) {
comp = [comp nextResponder];
[
{ "problemId": 0,
"seed": 0,
"tag": "tag",
"solution": "a"
}
]
@PaulTaykalo
PaulTaykalo / nm-usage.examle
Created August 19, 2015 18:55
nm -o example
./test/fixtures/objc-with-spaces/ObjC_With_Spaces-cuxhtkyoxskzaicbcbeydsfpwwsp/Build/Intermediates/ObjC With Spaces.build/Debug-iphonesimulator/ObjC With Spaces.build/Objects-normal/x86_64/AppDelegate.o: 0000000000000230 t -[AppDelegate .cxx_destruct]
./test/fixtures/objc-with-spaces/ObjC_With_Spaces-cuxhtkyoxskzaicbcbeydsfpwwsp/Build/Intermediates/ObjC With Spaces.build/Debug-iphonesimulator/ObjC With Spaces.build/Objects-normal/x86_64/AppDelegate.o: 0000000000000000 t -[AppDelegate application:didFinishLaunchingWithOptions:]
./test/fixtures/objc-with-spaces/ObjC_With_Spaces-cuxhtkyoxskzaicbcbeydsfpwwsp/Build/Intermediates/ObjC With Spaces.build/Debug-iphonesimulator/ObjC With Spaces.build/Objects-normal/x86_64/AppDelegate.o: 0000000000000150 t -[AppDelegate applicationDidBecomeActive:]
./test/fixtures/objc-with-spaces/ObjC_With_Spaces-cuxhtkyoxskzaicbcbeydsfpwwsp/Build/Intermediates/ObjC With Spaces.build/Debug-iphonesimulator/ObjC With Spaces.build/Objects-normal/x86_64/AppDelegate.o: 00000000000000d0 t -[
@PaulTaykalo
PaulTaykalo / dwarfdump-full.example
Created August 19, 2015 19:12
Dwarfdump example
----------------------------------------------------------------------
File: ./test/fixtures/objc-with-spaces/ObjC_With_Spaces-cuxhtkyoxskzaicbcbeydsfpwwsp/Build/Intermediates/ObjC With Spaces.build/Debug-iphonesimulator/ObjC With Spaces.build/Objects-normal/x86_64/AppDelegate.o (x86_64)
----------------------------------------------------------------------
.debug_info contents:
0x00000000: Compile Unit: length = 0x00004551 version = 0x0002 abbr_offset = 0x00000000 addr_size = 0x08 (next CU at 0x00004555)
0x0000000b: TAG_compile_unit [1] *
AT_producer( "Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)" )
AT_language( DW_LANG_ObjC )
@PaulTaykalo
PaulTaykalo / dwarfdump-with-grep
Created August 19, 2015 19:13
Dwarfdump example, when TAG_pointer_type is filtered
0x00000530: TAG_pointer_type [12]
AT_type( {0x00000535} ( objc_class ) )
--
0x0000053b: TAG_pointer_type [12]
AT_type( {0x00000540} ( NSUndoManager ) )
--
0x0000069c: TAG_pointer_type [12]
AT_type( {0x000006a1} ( NSArray ) )
--
0x000006bf: TAG_pointer_type [12]
@PaulTaykalo
PaulTaykalo / POodfile
Created August 27, 2015 15:35
Setting Up Nasty Macroses for some Pods :)
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
if target.name == "LogEntries"
target.build_configurations.each do |config|
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', 'LE_DEBUG_LOGS=0']
end
end
end
end
@PaulTaykalo
PaulTaykalo / gist:f6717951e63c23439c8a
Created September 10, 2015 14:49
Calling private -invoke method on block with parameters. Just because I'm curious :)
[(id)^(SEL sel, id block_self){
[block_self invoke];
} invoke];
@PaulTaykalo
PaulTaykalo / CKComponent+Injection.mm
Created October 26, 2015 18:34
UpdateOnClassInjection for liver reload Componens from Componentkit
@implementation CKComponent (Injection)
- (void)updateOnClassInjection {
dispatch_async(dispatch_get_main_queue(), ^{
// Search for the first component hostig view
id comp = self;
while (comp) {
comp = [comp nextResponder];
if ([comp isKindOfClass:[CKComponentHostingView class]]) {