Skip to content

Instantly share code, notes, and snippets.

View valsteen's full-sized avatar

Vincent Alsteen valsteen

View GitHub Profile
@valsteen
valsteen / django-crossdomainxhr-middleware.py
Last active December 15, 2015 11:59 — forked from vicalejuri/django-crossdomainxhr-middleware.py
Add Access-Control-Allow-Headers support
import re
from django.utils.text import compress_string
from django.utils.cache import patch_vary_headers
from django import http
try:
import settings
XS_SHARING_ALLOWED_ORIGINS = settings.XS_SHARING_ALLOWED_ORIGINS
@valsteen
valsteen / backlog.xsl
Created September 4, 2012 07:35
XSL to transform jira stories ( issue navigator -> view as XML ) as printable slides
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>
<!--
note : customfield_10002 may change depending on your jira setup. Inspect your xml output to insert the replace with the relevant field ID.
-->
<xsl:output method="html"/>
<xsl:template match="/">
<style>