- django module which aims to create documents in various formats from Open Document templates (odt).
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
matrix = [ | |
[2,1,4,0,], | |
[4,-1,13,-1,], | |
[-6,-3,-13,5,], | |
[-2,-13,18,-16,] | |
] | |
b_matrix = [1,2,0,-3] |
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
#django-debug-toolbar | |
DEBUG_TOOLBAR = True | |
if DEBUG_TOOLBAR: | |
INTERNAL_IPS = ('127.0.0.1',) | |
MIDDLEWARE_CLASSES += ( | |
'debug_toolbar.middleware.DebugToolbarMiddleware', | |
) | |
INSTALLED_APPS += ( | |
'debug_toolbar', |
#Logging SQL queries in Django
Add in your settings-local.py:
LOGGING['loggers']['django.db.backends'] = {
'handlers': ['console'],
'propagate': True,
'level': 'DEBUG',
}
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
<dict> | |
<key>name</key> | |
<string>SublimeLinter Annotations</string> | |
<key>scope</key> | |
<string>sublimelinter.annotations</string> | |
<key>settings</key> | |
<dict> | |
<key>background</key> | |
<string>#FFFFAA</string> | |
<key>foreground</key> |
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
SET foreign_key_checks = 0; | |
YOUR QUERY; | |
SET foreign_key_checks = 1; |
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
Getting It | |
You can get Django Extensions by using pip or easy_install: | |
$ pip install django-extensions | |
or | |
$ easy_install django-extensions | |
If you want to install it from source, grab the git repository from GitHub and run setup.py: | |
$ git clone git://github.com/django-extensions/django-extensions.git |
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
sudo dd bs=4M if=/path/to/image of=/dev/sdc |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
def split_file(file_name, max_line_count): | |
header = None | |
new_file_counter = 1 | |
line_counter = 0 |
OlderNewer