Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
- date: 20151229 | |
- forecasters: | |
- Alex Kerney | |
- problems: | |
- 1: | |
- problem: Deep Slab | |
- elevations: # how worried are we about this problem at different elevations and aspect | |
- below: | |
- n: high | |
- ne: considerable |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
""" | |
Uses Celery and Redis to walk over large file structures and find focal lengths before generating a bokeh plot. | |
With about 32 GB of predominatly 12 MP Raw photos on PCIe SSD: | |
- Takes about 2.7 seconds to walk and dispatch tasks | |
- Takes about 192 seconds for celery to work it way through reading each photo | |
With about 600 GB of predominantly 12 MP Raw photos on 2TB Firewire 800 7200 RPM Drive: | |
- Takes about 125 seconds to initially walk and dispatch the celery tasks | |
- And about 7700 seconds for celery to read each one. |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 itsdangerous import JSONWebSignatureSerializer | |
import requests | |
class AuthenticationError(Exception): | |
""" | |
Failed to authenticate with server | |
""" | |
def __init__(self, arg): | |
self.args = arg |
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 models import Contact, Task | |
# not real, but to give you an idea | |
from email import SendMail | |
# email client with server info | |
client = SendMail('abc@def.com', 'password', 'mail.def.com') | |
# get all the contacts | |
for contact in Contact.select(): |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.