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)viewDidLoad | |
{ | |
[super viewDidLoad]; | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(keyboardWillShow:) | |
name:UIKeyboardWillShowNotification | |
object:nil]; | |
[[NSNotificationCenter defaultCenter] addObserver:self | |
selector:@selector(keyboardWillHide:) |
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)textViewDidChange:(UITextView *)textView { | |
[self _showTextViewCaretPosition:textView]; | |
} | |
- (void)textViewDidChangeSelection:(UITextView *)textView { | |
[self _showTextViewCaretPosition:textView]; | |
} | |
- (void)_showTextViewCaretPosition:(UITextView *)textView { |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="description" content="A description about your site" /> | |
<meta name="keywords" content="keywords, separated, by, comma" /> | |
<meta name="author" content="pheXion.com" /> | |
<title>Untitled Document</title> | |
<link rel="shortcut icon" href="favicon.ico" /> | |
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
Remove spaces after last semi colon on each line of a php file. | |
find: | |
;[^\S\n]+$ | |
relace with: | |
; | |
--------------------------------------------------------------------------------------- | |
Remove spaces on blank lines | |
find: | |
^[^\S]+$ | |
replace with: |