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
cities: | |
- [Malvern, 0] | |
- [Newville, 0] | |
- [Coker, 0] | |
- [Creola, 0] | |
- [Forkland, 0] | |
- [Florence, 0] | |
- [Kinston, 0] | |
- [Toxey, 0] | |
- [Banks, 0] |
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
# A small script that wraps the basic functionality of the | |
# (in my option somewhat confusing) googleapiclient features | |
# for instance control. | |
import time | |
from googleapiclient import discovery | |
cloud_config = dict( | |
project='My-Project', |
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
server { | |
listen 80; | |
server_name DOMAIN.com; | |
rewrite ^/([^(?:.well\-known)].*) https://DOMAIN.com/$1 permanent; | |
location ~ /.well-known { | |
root PATH_TO_VERIFY_DIR; | |
} | |
location / { | |
include uwsgi_params; | |
uwsgi_pass unix:/tmp/canvas.sock; |
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
# Callable objects like jQuery's $ are cool but tricky to implement. Here's | |
# an example of a class "decorator" that makes classes callable. | |
# | |
# The limitation is it will break typeof and instanceof checks against the | |
# resulting object. | |
# A class decorator to make instances callable. | |
# Calling instances will invoke their _call() method. | |
callable = (Class) -> | |
() -> |