Skip to content

Instantly share code, notes, and snippets.

View dam13n's full-sized avatar

Damien Sutevski dam13n

View GitHub Profile
if ([[_imageArray objectAtIndex:indexPath.row] isKindOfClass:[UIImage class]]) {
cell.imgView.image = [_imageArray objectAtIndex:indexPath.row];
} else if ([[_imageArray objectAtIndex:indexPath.row] isKindOfClass:[NSString class]]) {
cell.imgView.image = [UIImage imageNamed:[_imageArray objectAtIndex:indexPath.row]];
}
# hotfix for ios 9.3.1 KVO issue (perhaps specifically for observering NSDefaults)
# reference
# http://stackoverflow.com/questions/36193503/kvo-broken-in-ios-9-3
module BubbleWrap
module KVO
class Registry
attr_accessor :observer_last_called_at
def observeValueForKeyPath(key_path, ofObject: target, change: change, context: context)
key_paths = callbacks[target] || {}
@dam13n
dam13n / bip39_close_pairs_list.txt
Last active August 26, 2021 02:21
bip39 close pairs list
able, cable
able, table
across, cross
act, pact
again, gain
age, cage
age, page
age, wage
agree, green
ahead, head
abandon
ability
able
about
above
absent
absorb
abstract
absurd
abuse