Skip to content

Instantly share code, notes, and snippets.

View martindufresne's full-sized avatar

Martin Dufresne martindufresne

  • Québec, Canada
View GitHub Profile
@martindufresne
martindufresne / css-stats-ack.sh
Created September 28, 2012 18:00 — forked from pjkix/css-stats-ack.sh
shell script to generate some css file statistics
#!/bin/bash
## v1.0.6
## this script will gernerate css stats
### example output
# CSS STATS
# ----------
# Floats: 132
@martindufresne
martindufresne / css-vendor-prefix-mixin-for-sass
Created September 16, 2013 17:09
css-vendor-prefix-mixin-for-sass
@mixin vendor-prefix($name, $argument) {
#{$name}: $argument;
-webkit-#{$name}: $argument;
-ms-#{$name}: $argument;
-moz-#{$name}: $argument;
-o-#{$name}: $argument;
}
p {
@include vendor-prefix(hyphens, auto)
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>Untitled</title> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> <body>  </body></html>
@martindufresne
martindufresne / timelapse.sh
Created June 19, 2024 12:56
Script bash qui prend une capture d'écran toutes les X secondes
#!/bin/bash
# Check if interval argument is provided
if [ -z "$1" ]; then
echo "Usage: $0 -int <interval_in_seconds>"
exit 1
fi
# Extract the interval value
interval=$2