- rails new memeorama
- rails server
- rails generate scaffold meme name:string description:text picture:string
| #!/bin/bash | |
| set -x | |
| curl "https://www.esteri.it/mae/it/ministero/laretediplomatica/rete-diplomatica-mappa.html?tipo=0" | | |
| pup 'div[id="map"] + script text{}' | sed -r 's/..$//g;s/initMap\(//g' | jq . | in2csv -I -f json | | |
| tee 01_ambasciate.csv | csvgrep -i -c "lat" -r "^$" | csvjson -I --lat lat --lon lng | | |
| jq . >02_ambasciate.geojson | |
| curl "https://www.esteri.it/mae/it/ministero/laretediplomatica/rete-diplomatica-mappa.html?tipo=1" | |
| """ | |
| Simply display the contents of the webcam with optional mirroring using OpenCV | |
| via the new Pythonic cv2 interface. Press <esc> to quit. | |
| """ | |
| import cv2 | |
| def show_webcam(mirror=False): | |
| cam = cv2.VideoCapture(0) |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 Olivier Scherrer | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |