Skip to content

Instantly share code, notes, and snippets.

@lucyb
lucyb / example.yaml
Created October 30, 2022 20:26
Run an R script once a day
on:
schedule:
# Run every day at 19:00
- cron: "0 19 * * *"
jobs:
generate-data:
runs-on: ubuntu-latest
env:
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lucyb
lucyb / flickr_import.py
Created December 30, 2018 15:50
Sort photos from a Flickr bulk export into one folder per Flickr album
# Sort photos from a flickr bulk export into a better directory structure
#
# It creates directories based on album names and copies photos into the specified
# output location.
#
# Usage: flickr_import.py [flickr export dir] [flickr metadata dir] [output dir]
#
# Requires Python 3.6 and the python magic package (do `pip install python-magic`)
import os
@lucyb
lucyb / fetch.py
Created November 8, 2018 21:10
Retrieve postcodes for a list of longitudes and latitudes
import csv
import json
import requests
import pandas as pd
from pandas.io.json import json_normalize
url = "https://api.postcodes.io/postcodes"
api_limit = 99
### Keybase proof
I hereby claim:
* I am lucyb on github.
* I am lucyb (https://keybase.io/lucyb) on keybase.
* I have a public key ASD34mMRiEIogVXyCk8vJras6IzgyNJxbKl5nXDZyFwnjQo
To claim this, I am signing this object: