Big-Q notation is exactly the same as Big-O notation, except for the understanding that the constant multiplier for the asymptotic bound function is greater.
For example Big-O is defined as:
f(x) <= C * g(x)
Big-Q notation could be defined as:
$red: #B12125 | |
$ltred: #DC8B6A | |
$dkblue: #3E67B0 | |
$blue: #44ABDF | |
$yellow: #FCC10F | |
$ltyellow: #FCE598 | |
$teal: #379D92 | |
$ltteal: #9BCEC8 | |
$violet: #742E66 | |
$ltviolet: #993D88 |
// put this in a bookmarklet | |
// click it as required | |
javascript: (function () { | |
var style = document.createElement('style'); | |
style.innerHTML = '* { -webkit-text-size-adjust:auto; }'; | |
document.head.appendChild(style); | |
})(); |
from cloudsearch import connect_cloudsearch, get_document_service | |
endpoint = 'paste your doc service endpoint here' | |
service = get_document_service(endpoint=endpoint) # Get a new instance of cloudsearch.DocumentServiceConnection | |
# Presumably get some users from your db of choice. | |
users = [ | |
{ | |
'id': 1, |
At present application loading is handled in different ways through Django.
Because of some of the limitations of Python, and some peculiarities of how
models work, modules should not be reimported. Consequently Django maintains
a global static, called the application cache. Models are imported from the
application cache transparently when interacting with the database. But
applications listed in INSTALLED_APPS
contain more than just models. Some
contain template tags, admin.py
files, search_indexes.py
files from
This document lays out some baseline expectations between conference speakers and conference presenters. The general goal is to maximize the value the conference provides to its attendees and community and to let speakers know what they might reasonably expect from a conference.
We believe that all speakers should reasonably expect these things, not just speakers who are known to draw large crowds, because no one is a rockstar but more people should have the chance to be one. We believe that conferences are better -- and, dare we say, more diverse -- when the people speaking are not just the people who can afford to get themselves there, either because their company paid or they foot the bill themselves. Basically, this isn't a rock show rider, it's some ideas that should help get the voices of lesser known folks heard.
These expectations should serve as a starting point for discussion between speaker and organizer. They are not a list of demands; they are a list of rea
from urlparse import urlsplit, urlunsplit | |
from storages.backends.s3boto import S3BotoStorage | |
class ProtocolRelativeS3BotoStorage(S3BotoStorage): | |
"""Extends S3BotoStorage to return protocol-relative URLs | |
See: http://paulirish.com/2010/the-protocol-relative-url/ | |
""" |
zmq = require("zmq") | |
fs = require("fs") | |
var config = JSON.parse(fs.readFileSync(process.argv[2])) | |
var connexion = "tcp://"+config.ip+":" | |
var shell_conn = connexion+config.shell_port | |
var pub_conn = connexion+config.iopub_port | |
var hb_conn = connexion+config.hb_port |
"""A notebook manager that uses S3 storage. (based on the Azure manager) | |
http://ipython.org/ipython-doc/dev/interactive/htmlnotebook.html#using-a-different-notebook-store | |
Drop this file in IPython/frontend/html/notebook | |
1. Create a new notebook profile - ipython profile create nbserver | |
2. edit ~/.ipython/profile_nbserver/ipython_notebook_config.py | |
3. Add these lines: | |
c.NotebookApp.notebook_manager_class = 'IPython.frontend.html.notebook.s3nbmanager.S3NotebookManager' |