This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abandon | |
ability | |
able | |
about | |
above | |
absent | |
absorb | |
abstract | |
absurd | |
abuse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
able, cable | |
able, table | |
across, cross | |
act, pact | |
again, gain | |
age, cage | |
age, page | |
age, wage | |
agree, green | |
ahead, head |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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] || {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ctq = _ctq || []; | |
// Create 'compare to' strip object | |
_ctq.push(['newCompareToStrip', 'a']); | |
_ctq.push(['a.setPublisherID', 4]); | |
_ctq.push(['a.setAnchorID', 'ctAnchor']); | |
_ctq.push(['a.setFormID', 'ctSearchForm']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rooms = (hashtags+keywords).uniq & trend_array #.map!{|c| c.downcase.delete('#')} | |
# puts "rooms are #{rooms}" | |
rooms.each do |r| | |
# puts "now is #{Time.now}" | |
# puts "#{r}" | |
# puts "#{REDIS.get(r)}" | |
# puts "#{r} time is #{Time.parse(REDIS.get(r))}" | |
last_time = REDIS.get(r) | |
if last_time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name="twitter:card" content="app"> | |
<meta name="twitter:site" content="@poundcakeapp"> | |
<meta name="twitter:description" content="Create your own rooms and chat on any topic. For Android and iOS."> | |
<!-- <meta name="twitter:app:country" content="US"> --> | |
<meta name="twitter:app:name:iphone" content="Poundcake"> | |
<meta name="twitter:app:id:iphone" content="942027968"> | |
<meta name="twitter:app:url:iphone" content="Poundcake://"> | |
<!-- <meta name="twitter:app:name:ipad" content="Cannonball"> | |
<meta name="twitter:app:id:ipad" content="929750075"> --> | |
<!-- <meta name="twitter:app:url:ipad" content="cannonball://poem/5149e249222f9e600a7540ef"> --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terms_label = TTTAttributedLabel.alloc.initWithFrame(CGRectZero) | |
# terms_label.enabledTextCheckingTypes = NSTextCheckingTypeLink | |
terms_label.delegate = self | |
terms_label.lineBreakMode = UILineBreakModeWordWrap; | |
terms_label.numberOfLines = 0; | |
paragraph = NSMutableAttributedString.alloc.initWithString("blah blah blah Terms blah blah") | |
terms_label.setText(paragraph) | |
range = [terms_label.text.index("Terms"), 5] | |
# range = terms_label.text rangeOfString:@"me"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HomeController < UIViewController | |
include BW::KVO | |
def viewWillAppear(animated) | |
super | |
end | |
def viewDidLoad | |
super |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
messagesRef = Firebase(url: "https://swift-chat.firebaseio.com/messages") | |
// *** STEP 4: RECEIVE MESSAGES FROM FIREBASE | |
messagesRef.observeEventType(FEventType.ChildAdded, withBlock: { (snapshot) in | |
let text = snapshot.value["text"] as? String | |
let sender = snapshot.value["sender"] as? String | |
let imageUrl = snapshot.value["imageUrl"] as? String | |
let message = Message(text: text, sender: sender, imageUrl: imageUrl) | |
self.messages.append(message) |
NewerOlder