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
// Detetes default value in input fields but not user inserted text | |
default_values = {}; | |
$email = $('input#email'); | |
$email.each(function () { | |
var index = $(this).attr('name'); | |
var value = $(this).val(); | |
default_values[index] = value; | |
}); |
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
" Switch between buffers using alt+left/right arrow | |
nnoremap <silent><A-Right> :bn<CR> | |
inoremap <silent><A-Right> <C-O>:bn<CR> | |
nnoremap <silent><A-Left> :bp<CR> | |
inoremap <silent><A-Left> <C-O>:bp<CR> |
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
while True: | |
for i in ["/","-","|","\\","|"]: | |
print "%s\r" % i, |
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
Time::DATE_FORMATS[:my_custom_time] = "%B %d, %Y" |
NewerOlder