Skip to content

Instantly share code, notes, and snippets.

@ftf
ftf / everyday.sh
Last active December 15, 2015 10:49
#!/bin/bash
EV_DIRECTORY="/Users/manu/Pictures/daily"
EV_BASE=`basename $EV_DIRECTORY`
function everyday_newpics {
# go to where the deed is done
cd $EV_DIRECTORY
# echo some information about the process
@ftf
ftf / gist:3162901
Created July 23, 2012 09:55 — forked from madrobby/gist:3161015
detect retina support
function isRetina(){
return (('devicePixelRatio' in window && devicePixelRatio > 1) ||
('matchMedia' in window && matchMedia("(-moz-device-pixel-ratio:1.0)").matches))
}