{
"karma-mocha": "^0.2.1",
"karma-chai": "^0.1.0",
"karma-chai-as-promised": "^0.1.2",
"karma-sinon": "^1.0.4",
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
create index on :Country(name); | |
create index on :City(name); | |
create index on :Sport(name); | |
create index on :Discipline(name); | |
create index on :Athlete(name); | |
create index on :Event(name); | |
create index on :Year(name); | |
create index on :Gender(name); | |
create constraint on (c:Country) assert c.noc is unique; |
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
redis: | |
image: redis | |
postgres: | |
image: postgres | |
environment: | |
- POSTGRES_PASSWORD=sentry | |
- POSTGRES_USER=sentry | |
volumes: | |
- /var/lib/postgresql/data |
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
description "Jekyll node.js server" | |
author "Jon Hazan<[email protected]>" | |
env USER=www-data | |
env SITENAME=yoursite.com | |
env SITEDIR=/var/www/yoursite.com/ | |
env JEKYLL=/usr/local/bin/jekyll | |
#Make sure mounting is completed before starting | |
start on started mountall |
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
#!/usr/bin/python | |
#################### | |
# ansiblecaller.py | |
#################### | |
import os | |
import sys | |
import subprocess | |
import shlex |
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 django import forms | |
from django.core import validators | |
from django.core.exceptions import ValidationError | |
class MinLengthValidator(validators.MinLengthValidator): | |
message = 'Ensure this value has at least %(limit_value)d elements (it has %(show_value)d).' | |
class MaxLengthValidator(validators.MaxLengthValidator): | |
message = 'Ensure this value has at most %(limit_value)d elements (it has %(show_value)d).' |
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
"""WSGI application file""" | |
import os | |
from django.core.wsgi import get_wsgi_application | |
from barrel import cooper | |
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project.settings') | |
django_app = get_wsgi_application() |
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
# | |
# Advanced Django 1.3.x+ Logging | |
# | |
# Author: | |
# Jason Giedymin < jasong _[_a-t_]_ apache d-o-t org > | |
# | |
# Description: | |
# A Django 1.3.x+ settings.py snippet with Advanced logging formatters using RFC 2822, | |
# TimedRotatingFileHandler, and a WatchedFileHandler. | |
# |
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
import base64 | |
import hashlib | |
import hmac | |
import simplejson as json | |
def base64_url_decode(inp): | |
padding_factor = (4 - len(inp) % 4) % 4 | |
inp += "="*padding_factor | |
return base64.b64decode(unicode(inp).translate(dict(zip(map(ord, u'-_'), u'+/')))) |
NewerOlder