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
Some gist | |
testing! |
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
This is some code |
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
@classmethod | |
def needs_list(cls): | |
Piece = models.get_model("warehouse_pieces", "Piece") | |
needs = Piece.objects.filter(vendorpiece__is_active=True).order_by("cached_days_until_out_of_stock") | |
return needs |
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
#!/bin/bash | |
export PORT=6660 | |
function enc { | |
password=$1 | |
while [ True ] ; do | |
read enc_text | |
echo "$enc_text" | openssl enc -rc4 -k $password | openssl enc -a | |
done; |
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
" Don't allow snipmate to take over tab | |
autocmd VimEnter * ino <c-j> <c-r>=TriggerSnippet()<cr> | |
" Use tab to scroll through autocomplete menus | |
autocmd VimEnter * imap <expr> <Tab> pumvisible() ? "<C-N>" : "<Tab>" | |
autocmd VimEnter * imap <expr> <S-Tab> pumvisible() ? "<C-P>" : "<S-Tab>" | |
snor <c-j> <esc>i<right><c-r>=TriggerSnippet()<cr> | |
let g:acp_completeoptPreview=1 |
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
# ######################################################################### | |
# This bash script adds tab-completion feature to django-admin.py and | |
# manage.py. | |
# | |
# Testing it out without installing | |
# ================================= | |
# | |
# To test out the completion without "installing" this, just run this file | |
# directly, like so: | |
# |
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 time | |
import redis | |
import feedparser | |
channels = ('hackpark', 'infoforcefeed',) | |
def main(): |
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 time | |
import redis | |
import twitter | |
accounts = ('reddit', 'AnonymousIRC',) | |
channels = ('hackpark', 'infoforcefeed') | |
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 time | |
import redis | |
import feedparser | |
channels = ('hackpark', 'infoforcefeed',) | |
def main(): |
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
#!/bin/sh | |
if test -n "$DISPLAY"; then | |
desktop="SERVER$(wmctrl -d | grep '\*' | cut -f 1 -d ' ')" | |
vim --serverlist | grep $desktop | |
if [ $? -eq 1 ] | |
then | |
vim --servername $desktop $* | |
else | |
vim --servername $desktop --remote $* | |
fi |
OlderNewer