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
byte[] data = null; | |
using (Stream response = await session.DownloadResourceAsync(request)) | |
using (MemoryStream responseInMemory = new MemoryStream()) | |
{ | |
await response.CopyToAsync(responseInMemory); | |
data = responseInMemory.ToArray(); | |
} | |
BeginInvokeOnMainThread(delegate | |
{ |
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
MyWorkspaceAfterPodInstall.xcworkspace | |
| | |
| | |
|---MyApp.xcodeproj | |
|---| | |
|---|--target : MyApp.app | |
|---| | |
|---|--MyLib.xcodeproj | |
|---| | |
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
dodikk$ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/simctl list | |
== Device Types == | |
iPhone 4s (com.apple.CoreSimulator.SimDeviceType.iPhone-4s) | |
iPhone 5 (com.apple.CoreSimulator.SimDeviceType.iPhone-5) | |
iPhone 5s (com.apple.CoreSimulator.SimDeviceType.iPhone-5s) | |
iPhone 6 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus) | |
iPhone 6 (com.apple.CoreSimulator.SimDeviceType.iPhone-6) |
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
#!/bin/bash | |
git clone <myRepo.git> | |
git checkout <commit hash GUID/tag name/branch 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
// избавляемся от свидетелей | |
while (object.retainCount) { | |
[object release]; | |
} | |
// 146% убиваем объект. Мамом клянусь - да! | |
[object release]; | |
// контрольный в голову | |
[object dealloc]; |
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
tail -f ~/Library/Logs/CoreSimulator/<simulator_id>/system.log | grep <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
Last login: Sat Nov 29 20:54:14 on ttys008 | |
dodikk-MacBook:Carthage dodikk$ make package | |
rm -f "Carthage.pkg" | |
rm -rf "/tmp/Carthage.dst" | |
xcodebuild -workspace 'Carthage.xcworkspace' -scheme 'carthage' clean | |
2014-11-29 21:08:34.499 xcodebuild[25139:1007] [MT] DVTSDK: Warning: SDK path collision for path '<DVTFilePath:0x7fb9e2d0f640:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk'>': SDK with name 'iphonesimulator8.1' being superceded by SDK with 'iphonesimulator8.1'. | |
2014-11-29 21:08:34.502 xcodebuild[25139:1007] [MT] DVTSDK: Warning: SDK path collision for path '<DVTFilePath:0x7fb9e2f36840:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk'>': SDK with name 'iphoneos8.1' being superceded by SDK with 'iphoneos8.1'. | |
=== CLEAN TARGET LlamaKit-Mac OF PROJECT LlamaKit WITH CONFIGURATION Debug === | |
Check dependencies |
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
void foo() | |
{ | |
// __strong guarantees that the object is "alive" until the end of foo() stack frame. The __strong keyword is used implicitly and may be omitted. | |
// Unless it's retained by other objects | |
__strong SomeObjectClass *someObject = ... | |
// __weak does not let the block increase the retain count of "someObject" | |
// | |
__weak SomeObjectClass *weakSomeObject = someObject; | |
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
$('#p39485').addClass('overlay'); |
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
public interface IRestApiCallTasks<TRequest, THttpResult, TResult> | |
{ | |
Task<string> BuildRequestUrlForRequestAsync( TRequest request ); | |
Task<THttpResult> SendRequestForUrlAsync( string requestUrl ); | |
Task<TResult> ParseResponseDataAsync(THttpResult httpData); | |
} |