Skip to content

Instantly share code, notes, and snippets.

View pielgrzym's full-sized avatar
☂️

Q pielgrzym

☂️
View GitHub Profile
@pielgrzym
pielgrzym / jquery.input_formatter.js
Created June 25, 2011 23:07
Simple plugin to format numbers in input fields on the fly (like: 10000 -> 10 000)
(function($){
$.fn.extend({
formatInput: function(settings) {
var $elem = $(this);
settings = $.extend({
errback: null
}, settings);
$elem.bind("keyup.filter_input", $.fn.formatEvent);
},
formatEvent: function(e) {
class MortgageForm(ModelForm):
class Meta:
model = Mortgage
def __init__(self, *args, **kwargs):
"""
Custom init method
"""
import ipdb
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