Button handlers cannot be private
Cast the collection (which also casts the item) by appending as Type
%div{ 'ng-controller' => 'StoreCtrl' } | |
%a{ href: '#/stores' } Back to Stores | |
%h1 {{ store.name }} | |
%section.installations | |
%accordion{ 'close-others' => 'false' } | |
%accordion-group{ 'ng-repeat' => 'installation in store.installations' } | |
%accordion-heading {{ installation.name }} | |
%pane{ 'installation' => 'installation' } |
Error Domain=NSCocoaErrorDomain Code=4 "The operation couldn’t be completed. (Cocoa error 4.)" UserInfo=0x181baad0 {NSFilePath=/var/mobile/Applications/C0EB75DC-B716-4404-82AF-02C24C631B69/Library/Application Support/assets/packages/thumbs/[email protected], NSUnderlyingError=0x181ba6a0 "The operation couldn’t be completed. No such file or directory"} |
// The declaration | |
@property (nonatomic, readonly, getter = hasTrackingEnabled) BOOL trackingEnabled; | |
// The spec | |
[[[targetMock expect] andReturnValue:@YES] hasTrackingEnabled]; | |
// The failure | |
// Return value does not match method signature; signature declares 'B' but value is 'c'. |
__weak typeof(self) weakSelf = self; | |
[[NSNotificationCenter defaultCenter] addObserverForName:ACAccountStoreDidChangeNotification | |
object:nil | |
queue:nil | |
usingBlock:^(NSNotification *note) { | |
__strong typeof(weakSelf) strongSelf = weakSelf; | |
[strongSelf requestProfileInformation]; | |
}]; |
f1 = Fiber.new { sleep 1; puts '1' } | |
f2 = Fiber.new { sleep 0.1; puts '2' } | |
f1.resume; f2.resume | |
# => 1 | |
# => 2 |
# In my init/setup | |
// Register the header | |
[self.collectionView registerClass:[DummyView class] | |
forSupplementaryViewOfKind:UICollectionElementKindSectionHeader | |
withReuseIdentifier:kJJUserJujuLibraryHeaderIdentifier]; | |
# This is being called | |
- (CGSize)collectionView:(UICollectionView *)collectionView | |
layout:(UICollectionViewLayout *)collectionViewLayout |
import * as fs from 'fs'; | |
import { | |
always, append, apply, compose, complement, equals, flip, head, ifElse, inc, indexOf, | |
length, lift, lt, map, range, reduce, reduced, reject, split, sum, tail, take, test | |
} from 'ramda'; | |
// Get the words list and create an array, rejecting anything with apostrophes | |
const words = compose( | |
reject(test(/'/)), | |
split('\n'), |
var store = new TaskStore(reducer, actions.init({ | |
tasks: { | |
incomplete: incompleteTasks, | |
complete: completedTasks, | |
}, | |
})); | |
store.state.observe(function (state) { console.log(state) }); |
const daggy = require('daggy'); | |
const R = require('ramda'); | |
const Future = require('fluture'); | |
const S = require('sanctuary'); | |
const { Left, Right, Either } = S; | |
const Answer = daggy.taggedSum({ | |
Pure: ['value'], | |
Addressable: ['street', 'city', 'postal_code', 'state'], // Address | |
Contactable: ['contact_uid'], // Participant and Relationship |