- ZenCoding is now Emmet
- Prefixr
- AdvancedNewFile
- SidebarEnhacements
- SublimeLinter
- Gist
- DocBlockr - Only for Javascript, PHP, ActionScript, CoffeeScript, Java, Objective C, C and C++
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
| import os | |
| import sys | |
| INTERP = os.path.join(os.environ['HOME'], '.virtualenvs', 'project', 'bin', 'python') | |
| if sys.executable != INTERP: | |
| os.execl(INTERP, INTERP, *sys.argv) | |
| sys.path.insert(1, os.getcwd()) # '[...]./' | |
| sys.path.insert(1, os.path.join(os.getcwd(), 'project')) # '[...]/project/' |
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
| from django import forms | |
| class PlaceholderForm(forms.ModelForm): | |
| def __init__(self, *args, **kwargs): | |
| super(PlaceholderForm, self).__init__(*args, **kwargs) | |
| for field in self.fields.values(): | |
| new_attrs = { | |
| 'placeholder': field.label |
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
| from mediagenerator.settings import DEV_MEDIA_URL, MEDIA_DEV_MODE | |
| # Only load other dependencies if they're needed | |
| if MEDIA_DEV_MODE: | |
| from mediagenerator.utils import _refresh_dev_names, _backend_mapping | |
| from django.http import HttpResponse, Http404 | |
| from django.utils.cache import patch_cache_control | |
| from django.utils.http import http_date | |
| import time |
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
| #!/bin/sh | |
| git clone git://github.com/ry/node.git | |
| cd node | |
| ./configure --prefix=~/.local/usr | |
| make | |
| make install | |
| export npm_config_prefix=~/.local/usr && curl https://npmjs.org/install.sh | sh |
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
| [ | |
| { | |
| "tema": "Desenvolvimento mobile por onde começar?", | |
| "autor": "Nonilton", | |
| "objetivo": "" | |
| }, | |
| { | |
| "tema" : "(RWD) Responsive Web Design: Por uma interface na medida", | |
| "autor": "Emmanuel", | |
| "objetivo": "O objetivo seria conscientizar os novos desenvolvedores da importância do desenvolvimento responsivo e tornar claro aos que pretendem iniciar na programação web que o RWD é um caminho sem volta." |
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
| #!/bin/env bash | |
| # Update packages | |
| apt-get update | |
| # Installing services | |
| echo "==============================" | |
| echo "Install web services" | |
| echo "==============================" | |
| apt-get -y install nginx supervisor |
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
| from datetime import datetime | |
| t1 = "09:30:00" | |
| t2 = "13:45:00" | |
| start_dt = datetime.strptime(t1, '%H:%M:%S') | |
| end_dt = datetime.strptime(t2, '%H:%M:%S') | |
| diff = (end_dt - start_dt) |
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
| # | |
| # My new theme :D | |
| # | |
| PROMPT='%~ %(!.#.$) ' |