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
// | |
// libuuid sample program | |
// | |
// library install for debian | |
// $ sudo apt-get install uuid-dev | |
// | |
// compile | |
// $ gcc uuid_test.c -luuid -o uuid_test | |
// | |
#include <stdio.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
func performChainOfCommands(_ commands: [Command], callback: Block) | |
{ | |
if (commands.isEmpty) | |
{ | |
callback(.fail) | |
} | |
let head = commands.first | |
let tail = commands[1..(commands.count - 1)] |
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
class VHMessageContentNode: ContentNode { | |
public var textNode: ASTextNode? | |
public var timestampNode: ASTextNode? | |
public var attachmentsNode: CollectionViewContentNode? | |
override func layoutSpecThatFits(_ constrainedSize: ASSizeRange) -> ASLayoutSpec { | |
let children: [ASLayoutElement?] = [self.timestampNode, | |
self.textNode, |
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
PHFetchResult *result = [PHAssetCollection fetchAssetCollectionsWithType:PHAssetCollectionTypeSmartAlbum | |
subtype:PHAssetCollectionSubtypeSmartAlbumUserLibrary | |
options:nil]; | |
PHAssetCollection *assetCollection = result.firstObject; | |
NSLog(@"%@", assetCollection.localizedTitle); | |
// Camera Roll |
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 | |
protocol Domain { | |
associatedtype Parent = Domain | |
static var name: String { get } | |
static var fullName: String { get } | |
} |
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
enum APIError : ErrorType { | |
// Can't connect to the server (maybe offline?) | |
case ConnectionError(error: NSError) | |
// The server responded with a non 200 status code | |
case ServerError(statusCode: Int, error: NSError) | |
// We got no data (0 bytes) back from the server | |
case NoDataError | |
// The server response can't be converted from JSON to a Dictionary | |
case JSONSerializationError(error: ErrorType) | |
// The Argo decoding Failed |
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
// | |
// AfnImageCacheForAsdk.swift | |
// | |
// Created by Alexander Dodatko on 4/26/17. | |
// | |
import Foundation | |
import AlamofireImage | |
import AsyncDisplayKit |
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 AsyncDisplayKit | |
import NMessenger | |
import VHChatLogic | |
class ChatRoomView: NMessengerViewController, ViewType | |
{ | |
public var controller: ChatRoomController? | |
private let vhBubbleConfig = VHBubbleConfiguration() | |
override func viewDidLoad() |
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
// | |
// BubbleView1.m | |
// ChatBubbleGuiPrototype | |
// | |
// Created by Alexander Dodatko on 4/5/17. | |
// Copyright © 2017 monspace. All rights reserved. | |
// | |
#import "BubbleView1.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
[4/5/17, 11:32:17 AM] Shcherbinin Anatoly: @question может кто-нибудь знает как заставить подписываться встроенные в фреймворк фреймворки? | |
[4/5/17, 11:33:04 AM] Shcherbinin Anatoly: вылетает no suitable image found. Did find:... required code signature missing for... | |
[4/5/17, 12:01:47 PM] Dmitry Savenok: 1) можно добавить в Other Code Signing Flags строку --deep --force | |
2) можно добавить build phase в которой делать | |
codesign --deep --force -v -s "$CODE_SIGN_IDENTITY" "$TARGET_BUILD_DIR/$EXECUTABLE_NAME.app" | |
лучше 1е |