Skip to content

Instantly share code, notes, and snippets.

View kenmhaggerty's full-sized avatar

Ken M. Haggerty kenmhaggerty

View GitHub Profile
{
"rules" : {
"$user_id" : {
".read" : "auth.uid == $user_id", // can read if $user_id matches current user
".write" : "auth.uid == $user_id", // can read if $user_id matches current user
".validate" : "newData.val().isString()" // new data must be string
}
}
}
- (void)updateSection:(NSUInteger)section
withData:(nonnull NSArray *)data
insertionAnimation:(UITableViewRowAnimation)insertionAnimation
deletionAnimation:(UITableViewRowAnimation)deletionAnimation
getter:(nonnull NSArray * _Nonnull(^)(void))getter
setter:(nonnull void (^)(NSArray * _Nonnull data))setter
insertedCells:(nullable void (^)(NSArray <UITableViewCell *> * _Nonnull cells))insertionBlock
reorderedCells:(nullable void (^)(NSArray <UITableViewCell *> * _Nonnull cells))reorderingBlock
deletedCells:(nullable void (^)(NSArray <UITableViewCell *> * _Nonnull cells))deletionBlock
completion:(nullable void (^)(void))completionBlock;

Keybase proof

I hereby claim:

  • I am kenmhaggerty on github.
  • I am kenmhaggerty (https://keybase.io/kenmhaggerty) on keybase.
  • I have a public key ASBTOJRUoFrdyI8p2I2R9KFubs2Q6rPdy0TNlllsDfAnYAo

To claim this, I am signing this object: