⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
static RACSignal *BodyImageURLs(NSString *postBody) | |
{ | |
NSRange (^lastRangeFromMatch)(NSTextCheckingResult *) = ^(NSTextCheckingResult *match) { | |
if (match == nil) { | |
return NSMakeRange(NSNotFound, 0); | |
} | |
else { | |
return [match rangeAtIndex:match.numberOfRanges - 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
# Эта приблуда - клиент, который получает время с удаленной машины | |
# Смотреть будем на миллисекунды | |
require 'net/http' | |
measures = [] | |
roundtrips = [] | |
uri = URI.parse "http://сервервремени:2000" | |
# Спецификация NTP какбэ рекомендует спрашивать время несколько раз, минимум 8. |
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
app-admin/logrotate clang | |
app-admin/sudo clang | |
app-admin/syslog-ng clang | |
app-arch/bzip2 clang | |
app-arch/cpio clang | |
app-arch/file-roller clang | |
app-arch/gzip clang | |
app-arch/lha clang | |
app-arch/libarchive clang | |
app-arch/lz4 clang |
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
// | |
// ViewController.swift | |
// TestSwift | |
// | |
// Created by Jameson Quave on 6/2/14. | |
// Copyright (c) 2014 JQ Software LLC. All rights reserved. | |
// | |
import UIKit | |
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
protocol ISubscriber { | |
typealias Element | |
func disposable() -> RACCompoundDisposable | |
func sendNext(e: Element) | |
func sendError(e: NSError) | |
func sendCompleted() | |
} |
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
//@auto_closure hack to prevent `LLVM ERROR: unimplemented IRGen feature! non-fixed multi-payload enum layout` | |
//as in https://github.com/maxpow4h/swiftz/blob/master/swiftz/Either.swift | |
enum Either<L,R> { | |
case Left(@auto_closure () -> L) | |
case Right(@auto_closure () -> R) | |
func flatMapLeft<L1>(f: (L) -> Either<L1, R>) -> Either<L1, R> { | |
switch self { | |
case let .Left(l): return f(l()) | |
case let .Right(r): return .Right(r) |
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
// | |
// RemoteEntity.h | |
// | |
// Created by Christopher Bradford on 5/6/10. | |
// Copyright 2010 INM United. All rights reserved. | |
// | |
@interface RemoteEntity : NSManagedObject | |
{ |
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-Blocks.h | |
// Handy codebits | |
// | |
// If you want to keep block definitions terse, simple and dynamic, have no | |
// problems with the incompatible block pointer types and you don't mind | |
// compiler warnings about sending a message without matching signature, | |
// DO NOT IMPORT THIS FILE, seriously. | |
// | |
// Created by Sijawusz Pur Rahnama on 15/11/09. |
OlderNewer