Skip to content

Instantly share code, notes, and snippets.

View manuganji's full-sized avatar
⛑️
Focusing

Manu Ganji manuganji

⛑️
Focusing
View GitHub Profile
@manuganji
manuganji / CsvExport.cs
Last active August 29, 2015 14:13 — forked from jitbit/CsvExport.cs
// 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;
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