Skip to content

Instantly share code, notes, and snippets.

function countCSSRules() {
var results = '',
log = '';
if (!document.styleSheets) {
return;
}
for (var i = 0; i < document.styleSheets.length; i++) {
countSheet(document.styleSheets[i]);
}
function countSheet(sheet) {
#!/bin/bash
keep=20
num=0
for t in `git tag -l --sort=-taggerdate`
do
if [ $num > $keep ] then
git tag -d $t