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
import json | |
import urllib | |
import urllib2 | |
import xml.dom.minidom | |
# AC: OP | |
project_slugs = { | |
'tu-munich': 'new-project', | |
} |
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
#!/bin/bash | |
if [ ! $# -gt 2 ]; then | |
echo "Usage: ./git_combine.sh new_repo_folder repo_folder repo_folder ..." | |
exit | |
fi | |
if [ ! -d $1 ]; then | |
mkdir $1 | |
fi |
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
import os | |
import ConfigParser | |
class Settings(object): | |
pass | |
def boolify(item): | |
return {'True': True, 'False': False}[item] |
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
from django.http import HttpResponse | |
from django.conf import settings | |
SESSION_COOKIE_NAME = getattr(settings, 'SESSION_COOKIE_NAME') | |
class SafariIFrameFixMiddleware(object): | |
""" | |
Middleware fixes sessions with Safari browser in iframes |