This file contains hidden or 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
| protocol RequestPresenter: class { | |
| var loadingView: UIView? { get set } | |
| func retryRequest(sender: UIButton) | |
| } | |
| extension RequestPresenter where Self: UIViewController { | |
| func startedLoading() { | |
| let activityIndicator = UIActivityIndicatorView() | |
| addLoadingView(activityIndicator) |
This file contains hidden or 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
| Marco-Antonio:~ marcopompei$ gem install eventmachine | |
| Building native extensions. This could take a while... | |
| ERROR: Error installing eventmachine: | |
| ERROR: Failed to build gem native extension. | |
| /Users/marcopompei/.rvm/rubies/ruby-2.0.0-p0/bin/ruby extconf.rb | |
| checking for rb_trap_immediate in ruby.h,rubysig.h... no | |
| checking for rb_thread_blocking_region()... yes | |
| checking for inotify_init() in sys/inotify.h... no | |
| checking for __NR_inotify_init in sys/syscall.h... no |
This file contains hidden or 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
| asdf |
This file contains hidden or 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
| <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> |
This file contains hidden or 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
| import urllib | |
| import time | |
| url = "http://www.unesp.br/vestibular/" | |
| a = urllib.urlopen(url).read() | |
| b = urllib.urlopen(url).read() | |
| i = 0 | |
| while (a == b): | |
| i += 1 | |
| print i | |
| b = urllib.urlopen(url).read() |