Skip to content

Instantly share code, notes, and snippets.

@hpbuniat
hpbuniat / popunder.html
Created June 12, 2011 19:44
Test for a popunder working in ff 3-14, chrome 10-21, ie6-9
<!DOCTYPE html>
<html>
<head>
<meta content="Hans-Peter Buniat" name="author">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Form-Submit Popunder</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
</head>
<body>
<form id="testSubmit" action="http://www.google.com">
@hpbuniat
hpbuniat / css-specificity.php
Created June 6, 2011 10:53
Although named CssSpecificity, it finds dupes. Aims to find over-specificityfied (and so unused) rules.
<?php
/**
* Some Css-Tests
*/
class CssSpecificity {
/**
* Css-Content
*
* @var string
@hpbuniat
hpbuniat / css-shredder.sh
Created June 3, 2011 10:51
Alpha Version of CSS-Shredder inspired by Nicole Sullivan-Haas
#!/bin/bash
IFS=$'\n'
echo "CSS-Shredder"
echo "---------------------------------------------------"
if [ -z "$1" ]; then
echo "Name des Ordners?"
read PORTAL
else
PORTAL=$1
#!/bin/bash
svncolor='{a["A"]=32;a["U"]=34;a["C"]=31;a["M"]=34;a["G"]=37;a["?"]=33;a["D"]=36;printf("\033[1;%sm%s\033[0;00m\n",a[$1],$0)}';
revision=`svn info ../ --non-interactive | grep Revision | awk '{print $2}'`
prev=$revision
next=$revision
echo -e "\e[32m!!!\e[m current revision is: \e[32m$revision\e[m"
while true; do
revision=`svn info ../ --non-interactive | grep Revision | awk '{print $2}'`