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
Show hidden characters
// It's saved under path_to_Packages/User/ | |
{ | |
"cmd": ["bibtex", "$file_base_name"], | |
"path": "$PATH:/usr/texbin:/usr/local/bin", | |
"file_regex": "^(...*?):([0-9]+): ([0-9]*)([^\\.]+)", | |
"selector": "text.tex.latex" | |
} |
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
from django import forms | |
import datetime | |
class MonthYearWidget(forms.MultiWidget): | |
""" | |
A widget that splits a date into Month/Year with selects. | |
""" |
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
.seta{ | |
width: 0; | |
height: 0; | |
} | |
.seta.cima { | |
border-left: 10px solid transparent; | |
border-right: 10px solid transparent; | |
border-bottom: 10px solid #aaa; | |
} |
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
# -*- coding: utf-8 -*- | |
import virtualenv, textwrap | |
output = virtualenv.create_bootstrap_script(textwrap.dedent(""" | |
import os, subprocess | |
import urllib2 | |
# YOUR REPO URL ex: | |
REPO = 'https://github.com/arthuralvim/dj-kickstart.git' |
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 random; random.sample(range(1,61),6) |
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 random | |
import string | |
def gen_pass(size=6, chars=string.ascii_uppercase + string.digits): | |
return ''.join(random.choice(chars) for x in range(size)) |
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
git clone [email protected]:wibiti/uncompyle2.git | |
cd uncompyle2/ | |
python setup.py install | |
uncompyler2 thank_goodness_this_still_exists.pyc > recovered_file.py |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
$script = <<-SCRIPT | |
apt-get update | |
locale-gen en_US en_US.UTF-8 pt_BR pt_BR.utf8 pt_PT.utf8 | |
dpkg-reconfigure locales | |
apt-get install -y --force-yes curl git |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from provy.core import Role | |
from provy.more.debian import AptitudeRole | |
from provy.more.debian import NginxRole | |
from provy.more.debian import SupervisorRole | |
from provy.more.debian import TornadoRole | |
from provy.more.debian import UserRole |
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
// Custom Iphone screen (MIN) | |
@screen-iphone-min: 320px !default; | |
// Extra small screen / phone (MIN) | |
@screen-xs-min: 480px !default; | |
// Small screen / tablet (MIN) | |
@screen-sm-min: 768px !default; | |
// Medium screen / desktop (MIN) | |
@screen-md-min: 992px !default; | |
// Large screen / wide desktop (MIN) | |
@screen-lg-min: 1200px !default; |
OlderNewer