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
// Simple C# csv export class | |
// found here: https://stackoverflow.com/questions/2422212/simple-c-sharp-csv-excel-export-class/ | |
// I guess copyright is (c) Chris Hulbert https://stackoverflow.com/users/59198/chris | |
using System; | |
using System.Data.SqlTypes; | |
using System.IO; | |
using System.Text; | |
using System.Collections.Generic; |
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 re | |
from django.utils.text import compress_string | |
from django.utils.cache import patch_vary_headers | |
from django import http | |
try: | |
from django.conf import settings | |
XS_SHARING_ALLOWED_ORIGINS = settings.XS_SHARING_ALLOWED_ORIGINS |
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 | |
# This hook is run after this virtualenv is activated. | |
# Place this file at $VIRTUAL_ENV/bin | |
# I usually drop something like this into my virtualenv's postactivate for some | |
# quick and handy shortcuts to common Django commands. | |
# This way dropping in to do some work on any arbitrary project is as easy as: | |
# 1. workon <project name> | |
# 2. djr |