HOC will soon (EOY?) launch an API for our DPS solution. The interface will be simple:
-
You give us a set of examples (input/output pairs)
-
We'll give you a (Python?) function that models it
And that's it. It will be an universal function finder.
Description of .hie files: https://ghc.haskell.org/trac/ghc/wiki/HIEFiles
Modifications to GHC: https://github.com/ghc/ghc/compare/master...wz1000:hiefile
Modifications to Haddock: https://github.com/haskell/haddock/compare/ghc-head...wz1000:hiefile2
Hyperlinked source built using .hie files: https://drive.google.com/open?id=1mmwH91zrAJtzaXbt0OlFxo3qBsllj7ss
| # install torch on ec2 g2 instance | |
| # installing torch | |
| curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash # prereqs | |
| git clone https://github.com/torch/distro.git ~/torch --recursive | |
| cd ~/torch; ./install.sh | |
| source ~/.bashrc | |
| # confirm torch is installed | |
| th |
| #!/bin/bash | |
| # This script downloads and builds the iOS, tvOS and Mac openSSL libraries with Bitcode enabled | |
| # Credits: | |
| # https://github.com/st3fan/ios-openssl | |
| # https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh | |
| # https://gist.github.com/foozmeat/5154962 | |
| # Peter Steinberger, PSPDFKit GmbH, @steipete. | |
| # Felix Schwarz, IOSPIRIT GmbH, @felix_schwarz. |
Modern Cocoa development involves a lot of asynchronous programming using blocks and NSOperations. A lot of APIs are exposing blocks and they are more natural to write a lot of logic, so we'll only focus on block-based APIs.
Block-based APIs are hard to use when number of operations grows and dependencies between them become more complicated. In this paper I introduce asynchronous semantics and Promise type to Swift language (borrowing ideas from design of throw-try-catch and optionals). Functions can opt-in to become async, programmer can compose complex logic involving asynchronous operations while compiler produces necessary closures to implement that logic. This proposal does not propose new runtime model, nor "actors" or "coroutines".
Greetings, NSHipsters!
As we prepare to increment our NSDateComponents -year by 1, it's time once again for NSHipster end-of-the-year Reader Submissions! Last year, we got some mind-blowing tips and tricks. With the release of iOS 7 & Mavericks, and a year's worth of new developments in the Objective-C ecosystem, there should be a ton of new stuff to write up for this year.
Submit your favorite piece of Objective-C trivia, framework arcana, hidden Xcode feature, or anything else you think is cool, and you could have it featured in the year-end blowout article. Just comment on this gist below!
Here are a few examples of the kind of things I'd like to see:
NSStringFromSelector(@selector()) as a safer way to do KVC / KVO / NSCoding.| @interface RACSocketReader : NSObject | |
| // Sends a RACSignal whenever there's new data ready to be read. Each signal | |
| // will send an NSData upon subscription. | |
| // | |
| // If you only want the NSData objects as fast as possible, simply -concat | |
| // this signal to get a eager signal of NSData values. | |
| @property (nonatomic, strong, readonly) RACSignal *signalOfDataSignals; | |
| - (id)initWithSocketDescriptor:(int)fildes; |
Note: the original location of this article is on my blog, however, it is posted here too for better readability.
In this article, we will see how to use Core Data for accessing your API. We will use the Bandcamp API as our running example. I've only been experimenting with this code for a few days, so there might be mistakes in there.
| - (void)setSelected:(BOOL)selected animated:(BOOL)animated { | |
| selected_ = selected; | |
| if (animated) { | |
| CATransition *transition = [CATransition animation]; | |
| transition.duration = 0.25f; | |
| transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; | |
| transition.type = kCATransitionFade; | |
| [self.selectionImageView.layer addAnimation:transition forKey:nil]; | |
| } |