ReactiveCocoa 0.9.0 Reference
ReactiveCocoa
ReactiveCocoa (RAC) is a framework for composing and transforming sequences of values.
No seriously, what is it?
Check out the announcement blog post for a ton more info.
Getting Started
RAC uses some submodules. Once you’ve cloned the repository, be sure to run git submodule update --recursive --init
to pull them all down.
Then checkout the Mac or iOS demos.
Examples
Observe changes to properties: ```objc [RACAble(self.username) subscribeNext:^(NSString *newName) {
NSLog(@"%@", newName);
}]; ```
Filter changes: ```objc [[[[RACAble(self.username) distinctUntilChanged]
take:3]
filter:^(NSString *newUsername) {
return [newUsername isEqualToString:@"joshaber"];
}]
subscribeNext:^(id _) {
NSLog(@"Hi me!");
}];
```
Derive properties: ```objc RAC(self.createEnabled) = [RACSignal
combineLatest:@[ RACAble(self.password), RACAble(self.passwordConfirmation) ]
reduce:^(NSString *password, NSString *passwordConfirm) {
return @([passwordConfirm isEqualToString:password]);
}];
```
Chain asynchronous calls: ```objc [[RACSignal
flatten:@[ [client fetchUserRepos], [client fetchOrgRepos] ]]
subscribeCompleted:^{
NSLog(@"They're both done!");
}];
```
```objc [[[[client loginUser]
flattenMap:^(User *user) {
return [client loadCachedMessagesForUser:user];
}]
flattenMap:^(NSArray *messages) {
return [client fetchMessagesAfterMessage:messages.lastObject];
}]
subscribeCompleted:^{
NSLog(@"Fetched all messages.");
}];
```
Easily move between different queues: ```objc RAC(self.imageView.image) = [[[[client fetchUserWithUsername:@“joshaber”]
deliverOn:RACScheduler.backgroundScheduler]
map:^(User *user) {
// This is on a background queue.
return [[NSImage alloc] initWithContentsOfURL:user.avatarURL];
}]
// Now the assignment will be done on the main queue.
deliverOn:RACSheduler.mainQueueScheduler]
```
Foundation Support
There are a number of categories that provide RAC-based bridges to standard Foundation classes. They’re not included as part of the framework proper in order to keep the framework size down.
You can find them in RACExtensions. To use them, simply add them directly to your project as needed.
License
Simplified BSD License
Class References
- RACArraySequence
- RACAsyncCommand
- RACAsyncSubject
- RACBacktrace
- RACBehaviorSubject
- RACBlockTrampoline
- RACCancelableSignal
- RACCollection
- RACCommand
- RACConnectableSignal
- RACDelegateProxy
- RACDisposable
- RACDynamicSequence
- RACEmptySequence
- RACEventTrampoline
- RACGroupedSignal
- RACMaybe
- RACObjCRuntime
- RACReplaySubject
- RACScheduler
- RACScopedDisposable
- RACSequence
- RACSignal
- RACSignalSequence
- RACStringSequence
- RACSubject
- RACSubscriber
- RACSubscriptingAssignmentObjectKeyPathPair
- RACSubscriptingAssignmentTrampoline
- RACTuple
- RACTupleNil
- RACUnit
- RACValueTransformer
Protocol References
Category References
- NSArray(RACExtensions)
- NSArray(RACSequenceAdditions)
- NSData(RACSupport)
- NSDictionary(RACSequenceAdditions)
- NSFileHandle(RACSupport)
- NSFileManager(RACSupport)
- NSInvocation(RACTypeParsing)
- NSNotificationCenter(RACSupport)
- NSObject(RACBindings)
- NSObject(RACExtensions)
- NSObject(RACFastEnumeration)
- NSObject(RACKVOWrapper)
- NSObject(RACLifting)
- NSObject(RACPropertySubscribing)
- NSOrderedSet(RACSequenceAdditions)
- NSSet(RACSequenceAdditions)
- NSString(RACSequenceAdditions)
- NSString(RACSupport)
- UIControl(RACSignalSupport)
- UITextField(RACSignalSupport)
- UITextView(RACSignalSupport)


Activities of Provider
eXtreme
Providers
Create Activity
Error
Name:
Min Age:
Max Age:
Capacity:
Offers
Name
Min Age
Max Age
Capacity
Offers
John Snow
18
45
25
Offers


| DOSE: T+ 0:00 |
0.5 hits |
oral |
LSD |
(blotter / tab) |
| T+ 1:00 |
0.5 hits |
oral |
LSD |
(blotter / tab) |
| T+ 1:30 |
1 hit |
oral |
4-Methylmethcathinone |
(pill / tablet) |
At a legal rave with my girlfirend, industrial outskirts of the town. The two rooms were quite crowded as it was raining outside. The lower one had some techno, while in the upper one they were playing goa trance. We bought the acid from a gabber kid, two Shiva imprint blotters (those were around in that period and knew that were something like 80-100 micrograms) and shared the first one. After one hour of very mild tripping (laughs and sociophylosophical conversation) we wanted to dance so we ate the other hit and went searching for some mdma, which was basically not available.
In the goa room we found a girl claiming to have mdma tablets, but they were bigger than usual, white, very crumbly and had a distinctive fishy smell (the logo was a dolphin, too). I said to her that in my opinion that was mephedrone and she admitted it and made a better price for two pills, which we ate immediately.
After half an hour the thing set up with mild rushes of energy, a distinctive but not strong entactogenic effect (feeling affectionate, kissing, etc), which went up and down for like 2 hours in three or four little peaks. There was no sense of general, global 'goodness' like with mdma, neither the energy rush was too intense. We danced for a while, supported more by the acid, which, when the mephedrone effect faded, came on very strongly and accompanied us home for some six hours with very strong closed eye visuals and bizarre dimensional shift feelings. The candyflip effect was not really there, so it looked like mephedrone did not have the strong LSD interlace ability that mdma has.
Experience Reports are the writings and opinions of the individual authors who submit them.
Some of the activities described are dangerous and/or illegal and none are recommended by Erowid.


{% extends "base.html" %} {% block title %} · about{% endblock %} {% block content %}
pick this was built by Ben Bougher, Jacob Foshee, Evan Bianco, and a combination of Matt Hall and Chris Chalcraft at the 2014 Geophysics Hackathon in Denver, Colorado.


| Interface | Description |
|---|---|
| Polymorphic | |
| SerializationPolicy |
Serialization policy that returns a set of classes and field names for
a specified
DsonOutput.Output mode. |
| SerializerIds |
Interface for accessing serializer IDs given a class or vice-versa.
|
| Class | Description |
|---|---|
| ClassScanningSerializationPolicy |
Class that maintains a map of
DsonOutput.Output types to
a set of pairs of classes and field/method names to output for that
serialization type. |
| ClassScanningSerializerIds |
Class that maintains a map of serializer IDs to
Class<?> objects
and vice versa. |
| DsonJavaType |
Opaque wrapper for
JavaType to allow distinguishing between
JSON and DSON mapper. |
| JsonJavaType |
Opaque wrapper for
JavaType to allow distinguishing between
JSON and DSON mapper. |
| MapHelper |
Helpers for creating maps used by the serializer for ephemeral data.
|
| Serialization |
Serialization class that handles conversion to/from DSON and JSON.
|
| SerializationUtils |
Collection of Serialization-related utilities
|
| SerializerConstants |
Package-local constants.
|
| Enum | Description |
|---|---|
| DsonOutput.Output |
Output modes for serialization.
|
| SerializerDummy |
Dummy class to include serializer field in output if required.
|
| Exception | Description |
|---|---|
| SerializationException |
General exception raised for serialization failures.
|
| SerializerIdsException |
Exception thrown on error while scanning for
SerializerId2 IDs. |
| Annotation Type | Description |
|---|---|
| DsonAnyProperties | |
| DsonOutput |
Annotation used to indicate which fields are included in coded DSON
for which output requirements.
|
| SerializerId2 |
Annotation for marking classes as serializable.
|


Structural models describe the default process as the explicit outcome of the deterioration of firm value
Merton model - applies Black-Scholes option model to corporate securities
KMV credit monitor model - extracts implied probabilities of default at a given horizon from equity prices
PDt=N[(logVt-logX+(μ-σ2V/2)(T-t))/[σV√(T-t)]]
Credit Scoring
Characteristics of good scoring model:
Accuracy
Parsimony
Nontriviality
Feasibility
Transparency and interpretability
Major approaches
Fisher linear discriminant analysis
Logistic regression and probit
k-nearest neighbor classifier (KNN)
Support vector machine classifier
Model Performance Measures
"Minimum-error" decision rule - uses Bayes' theorem to assign borrowers to a class with the goal of minimizing default probability
"Minimum-risk" decision rule - uses Bayes' theorem to assign borrowers to a class with the goal of minimizing expected loss
Neyman-Pearson decision rule
Minimax decision rule
Targeting Classification Accuracy
Reciever operating characteristic (ROC) approach - plots the number of correctly classified firms against the number of incorrectly classified firms
Gini/cumulative accuracy profile (CAP) approach - curve that assesses the consistency of the predictions of a scoring model to the ranking of observed defaults
Targeting Prediction Reliability
Maximum-likelihood decision rule - a measure of wealth maximization for the user of the scoring model
Goodness-of-fit tests - measure the deviation of a random sample from a given probability distribution