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
extension SequenceType where Generator.Element: Comparable { | |
func group() -> [[Generator.Element]] { | |
return self.group { $0 == $1 } | |
} | |
func group(by groupBy: (Generator.Element, Generator.Element) -> Bool) -> [[Generator.Element]] { | |
return self.reduce([]) { (xs, q) -> [[Generator.Element]] in | |
guard xs.count > 0 else { return [[q]] } | |
var xs = xs | |
let last = xs.count-1 | |
if groupBy(xs[last][0], q) { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
(function () { | |
try { | |
var url = encodeURIComponent(location.href); | |
var ifr = document.createElement('iframe'); | |
ifr.style.position = 'absolute'; | |
ifr.style.top = 10 + 'px'; | |
ifr.style.left = 10 + 'px'; | |
ifr.style.width = 450 + 'px'; | |
ifr.style.height = 70 + 'px'; | |
ifr.style.border = 'none'; |
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
# As it is no longer possible to register | |
# the app because of Apple's App Store Terms | |
# The only legal way to get the features, | |
# is to get an older version (from backup) | |
# and then upgrade to the latest version. | |
# Or you can run the following commands with you license information: | |
defaults write com.twitter.twitter-mac reg.email3 -string "your@email" | |
defaults write com.twitter.twitter-mac reg.license3 -string "yourMacHeistLicense" |