Skip to content

Instantly share code, notes, and snippets.

View luciovilla's full-sized avatar

Lucio Villa luciovilla

View GitHub Profile
@luciovilla
luciovilla / geolocation_script.gs
Created February 23, 2016 21:27
Geo Location Script for Google Spreadsheet
function getLat(address) {
if (address == '') {
Logger.log("Must provide an address");
return;
}
var geocoder = Maps.newGeocoder();
var location;
// Geocode the address and plug the lat, lng pair into the
// 2nd and 3rd elements of the current range row.
location = geocoder.geocode(address);
@luciovilla
luciovilla / .zshrc
Last active February 25, 2016 20:49 — forked from SlexAxton/.zshrc
My gif workflow
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else
@luciovilla
luciovilla / Makefile
Last active August 29, 2015 14:18 — forked from paulsmith/Makefile
all: results.csv
results.csv: scrape.py
python $< > $@.tmp
mv $@.tmp $@
clean:
-rm -f results.csv
.PHONY : clean