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
/* 3 - в начале имплементации класса (*.m) */ | |
@implementation IVExample () { | |
NSString *string; | |
int number; | |
} | |
... | |
@end |
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 | |
# by Artyom Loenko aka dive (artyom.loenko@mac.com) | |
# Usage: | |
# - download this script | |
# - open Terminal.app | |
# - goto to Folder where script downloaded | |
# - run 'chmod +x fix_skype_conversation_icons_retina.sh' | |
# - then run './fix_skype_conversation_icons_retina.sh' |
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
#!/usr/bin/env bash | |
if [[ ! ( # any of the following are not true | |
# 1st arg is an existing regular file | |
-f "$1" && | |
# ...and it has a .ipa extension | |
"${1##*.}" == "ipa" && | |
# 2nd arg is an existing regular file | |
-f "$2" && |
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
// | |
// main.m | |
// LocaleChecker | |
// | |
// Created by Artyom Loenko on 11/1/12. | |
// Copyright (c) 2012 Artyom Loenko. All rights reserved. | |
// | |
#import <Foundation/Foundation.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
#import <Foundation/Foundation.h> | |
@interface TestSelfSelfer : NSObject | |
@property (nonatomic, strong) NSString *string; | |
@property (nonatomic, strong) TestSelfSelfer *sself; | |
@end | |
@implementation TestSelfSelfer |
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
# shutdown Skype | |
# Skype username - it's a login at Skype | |
# Mac username - it's a short username of Mac OS X (ex.: dive) | |
# <...> should be entered without brackets <> | |
#copy this one, paste to Terminal.app and hit Enter | |
sqlite3 "$HOME/Library/Application Support/Skype/<your_skype_username>/main.db" | |
#then copy this one, paste to Terminal.app where sqlite3 running and hit Enter | |
delete from Messages where dialog_partner = '<delete_history_of_conversation_with_particurarly_username>'; |
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
import UIKit | |
public final class FrameworkPackage { | |
public init () { } | |
public func randomColor() -> UIColor { | |
return UIColor.random | |
} | |
} | |
public extension UIColor { |
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
import UIKit | |
import class ios_framework_package.FrameworkPackage | |
class ViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
self.view.backgroundColor = FrameworkPackage().randomColor() | |
} | |
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
platforms: [ .iOS(.v12) ] |
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
swift package init --type library |