This file contains 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 |
This file contains 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 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 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(custom_settings) { | |
settings = $.extend({ | |
regex:".*", | |
format_number: true, | |
max_length: false, | |
errback: null | |
}, custom_settings); | |
return this.each(function() { |
This file contains 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(custom_settings) { | |
var settings = $.extend({ | |
regex:".*", | |
format_number: true, | |
max_length: false, | |
errback: undefined | |
}, custom_settings); | |
return this.each(function() { |
This file contains 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
pyfile /home/pielgrzym/.vim/bundle/vimotal/vimotal.py | |
python << EOF | |
def getPivotalGroup(name, group): | |
import vim, sys, os | |
scriptdir = "/home/pielgrzym/.vim/bundle/vimotal" | |
sys.path.append(scriptdir) | |
# name = vim.eval("a:projectname") | |
# group = vim.eval("a:groupname") |
This file contains 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
pyfile /home/pielgrzym/.vim/bundle/vimotal/vimotal.py | |
function! GetPivotalGroup(name, group) | |
python << EOF | |
import vim, sys, os | |
scriptdir = "/home/pielgrzym/.vim/bundle/vimotal" | |
sys.path.append(scriptdir) | |
name = vim.eval("a:name") | |
group = vim.eval("a:group") | |
pivotal = Pivotal() |
This file contains 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
pyfile /home/pielgrzym/.vim/bundle/vimotal/vimotal.py | |
function! GetPivotalGroup(name, group) | |
python << EOF | |
import vim, sys, os | |
scriptdir = "/home/pielgrzym/.vim/bundle/vimotal" | |
sys.path.append(scriptdir) | |
name = vim.eval("a:name") | |
group = vim.eval("a:group") | |
pivotal = Pivotal() |
This file contains 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 XMonad hiding ( (|||) ) | |
import XMonad.Layout.LayoutCombinators | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Hooks.ManageHelpers(doRectFloat, Side (C)) | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig(additionalKeysP, removeKeysP) | |
import System.IO | |
import qualified XMonad.StackSet as W | |
import XMonad.Actions.GridSelect |
This file contains 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 XMonad hiding ( (|||) ) | |
import XMonad.Layout.LayoutCombinators | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Hooks.ManageHelpers(doRectFloat, Side (C)) | |
import XMonad.Util.Run(spawnPipe) | |
import XMonad.Util.EZConfig(additionalKeysP, removeKeysP) | |
import System.IO | |
import qualified XMonad.StackSet as W | |
import XMonad.Actions.GridSelect |
OlderNewer