This re-styles your sublime text 2 sidebar to be darker, so it doesn't blind you when using a dark theme.
Save the Default.sublime-theme file into packages/Theme - Default, make a backup of your original if you want to be able to go back easily.
| from django.db import models | |
| class M1(models.Model): | |
| title = models.CharField(max_length=100) | |
| img1 = models.ImageField(upload_to="static/") | |
| def __unicode__(self): | |
| return self.title |
| #!/usr/bin/env bash | |
| # memusg -- Measure memory usage of processes | |
| # Usage: memusg COMMAND [ARGS]... | |
| # | |
| # Author: Jaeho Shin <netj@sparcs.org> | |
| # Created: 2010-08-16 | |
| ############################################################################ | |
| # Copyright 2010 Jaeho Shin. # | |
| # # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); # |
| import errno | |
| import functools | |
| import socket | |
| from tornado import ioloop, iostream | |
| class Connection(object): | |
| def __init__(self, connection): | |
| self.stream = iostream.IOStream(connection) | |
| self._read() |
| # Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
| # that enables you to choose a character from a menu of options. If you are on Lion | |
| # try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
| # for input. | |
| # | |
| # It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
| # it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode, | |
| # as it means you cannot press and hold h/j/k/l to move through your file. You have | |
| # to repeatedly press the keys to navigate. |
| This playbook has been removed as it is now very outdated. |
| # -*- coding: utf-8 -*- | |
| """ | |
| Скрипт для скачивания музыки с сайта vkontakte.ru (vk.com) | |
| Запуск: | |
| python vkcom_audio_download.py | |
| Принцип работы: | |
| Скрипт проверяет сохраненный access_token. Если его нет или срок истек, | |
| то открывается страница в браузере с запросом на доступ к аккаунту. |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| """ | |
| Settings for root logger. | |
| Log messages will be printed to console and also to log file (rotated, with | |
| specified size). All log messages from used libraries will be also handled. | |
| Three approaches for defining logging settings are used: | |
| 1. using logging classes directly (py25+, py30+) | |
| 2. using fileConfig (py26+, py30+) | |
| 3. using dictConfig (py27+, py32+) | |
| Choose any variant as you like, but keep in mind python versions, that |