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
| (function($){ | |
| $.fn.extend({ | |
| formatInput: function(settings) { | |
| var $elem = $(this); | |
| settings = $.extend({ | |
| errback: null | |
| }, settings); | |
| $elem.bind("keyup.filter_input", $.fn.formatEvent); | |
| }, | |
| formatEvent: function(e) { |
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
| class MortgageForm(ModelForm): | |
| class Meta: | |
| model = Mortgage | |
| def __init__(self, *args, **kwargs): | |
| """ | |
| Custom init method | |
| """ | |
| import ipdb |
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
| freeze_hist() { | |
| fc -p # pop current history into stack | |
| HISTFILE=`pwd`/.zsh_custom_history | |
| SAVEHIST=10000 | |
| HISTSIZE=10000 | |
| } | |
| unfreeze_hist() { | |
| fc -p `pwd`/.zsh_custom_history | |
| HISTFILE=`pwd`/.zsh_custom_history |
NewerOlder