Skip to content

Instantly share code, notes, and snippets.

@daneroo
daneroo / invalid.xml
Last active November 24, 2018 18:33 — forked from sritchie/gist.xml
Live xml for dash parsing
<?xml version="1.0" encoding="utf-8"?>
<MPD>
<ProgramInformation>
<Title>This Document is not valid XML because it has an unclosed tag</Title>
</ProgramInformation>
<UnclosedTag>
</MPD>
@daneroo
daneroo / gist:2820356
Created May 28, 2012 18:07 — forked from hacklschorsch/gist:2788656
a jshint pre-commit hook for git
#!/bin/bash
# A pre-commit hook for git to lint JavaScript files with jshint
# @see https://github.com/jshint/jshint/
#
# @see http://blog.founddrama.net/2011/06/jshint-pre-commit-hook-for-git
# @see https://gist.github.com/1013614
#
# Modified by fs@it-agenten.com 2012-05-22 for node.js and explicit /bin/bash
if git rev-parse --verify HEAD >/dev/null 2>&1