Skip to content

Instantly share code, notes, and snippets.

View Biaggio74's full-sized avatar

Balázs Kisfali Biaggio74

View GitHub Profile
@Biaggio74
Biaggio74 / wind.py
Last active October 31, 2021 21:22
Wind measurements with Davis anemometer
import time
from gpiozero import Button
from signal import pause
import statistics
import pyrebase
import Adafruit_DHT as dht
#The "black" wire (wind speed) of Davis connected to PIN29 as GPIO05
#the "red" wire (ground) of Davis is connected to PIN39 ground
#the "green" wire (wind direction) of davis is connected to PIN31 as GPIO06
#the "yellow" wire is connected to 5V PIN02
@Biaggio74
Biaggio74 / description.md
Last active June 15, 2020 07:56
Ghost blog: image quick resizing with markdown and pick up ALT for caption

Resizing Ghost blog image with MD and pick up the ALT of the image

These few lines gives a quick control on the image size in case you don't want a full width or full screen image. You create the MD image as below to resize the image by 50% for instance:

![This is the ALT and caption of an image. @50%](https://blog.yourdomain.com/storage/image.png)

This will create the below img tag in HTML. The @50% will be truncated from the caption, but it will be still present in the ALT. You can use whatever size after the @ between 1 and 100. Then the integer has to be followed by %.

@Biaggio74
Biaggio74 / advanced_rasterio_features.ipynb
Created April 10, 2018 21:45 — forked from sgillies/advanced_rasterio_features.ipynb
Advanced Rasterio features notebook
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.