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
| - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender | |
| { | |
| if ([segue.identifier isEqualToString:@"showPost"]) { | |
| NSDictionary *current = self.posts[[self.tableView indexPathForSelectedRow].row]; | |
| WPPostViewController *vc = segue.destinationViewController; | |
| vc.postText = current[@"content"]; | |
| vc.postTitle = current[@"title"]; | |
| } | |
| } |
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
| pod "SVPullToRefresh", "0.4" |
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 "UIScrollView+SVPullToRefresh.h" |
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
| __block id this = self; | |
| [self.tableView addPullToRefreshWithActionHandler:^{ | |
| // Escreva seu codigo aqui | |
| // Depois de executar a logica, envie uma mensagem para o componente encerrar a atualização | |
| [[this tableView].pullToRefreshView stopAnimating]; | |
| }]; |
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 "UIScrollView+SVInfiniteScrolling.h" |
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
| __block id this = self; | |
| [self.tableView addInfiniteScrollingWithActionHandler:^{ | |
| // Logica de negocio | |
| // ... | |
| // Pare a animacao do componente | |
| [[this tableView].infiniteScrollingView stopAnimating]; | |
| }]; |
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
| def getch(): | |
| is_windows = True | |
| try: | |
| import msvcrt | |
| def g_windows(): | |
| return msvcrt.getch() | |
| impl = g_windows | |
| except ImportError: |
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
| print "\n".join(["Ja sei programar em python!" for i in range(10)]) |
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
| let g:OpenProject#folder_prefix = $HOME . "/code/" | |
| let g:OpenProject#projects = { | |
| \"lengio": "lengio/lengio-app", | |
| \"parser": "lengio/parser" | |
| \} | |
| " Open a specific project with a command (e.g. :Lengio<CR>) | |
| command! Lengio OpenProject lengio |
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
| filetype off | |
| set nocompatible | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| Plugin 'gmarik/Vundle.vim' | |
| call vundle#end() | |
| filetype plugin indent on |