Skip to content

Instantly share code, notes, and snippets.

View massenz's full-sized avatar
🏠
Working from home

Marco Massenzio massenz

🏠
Working from home
View GitHub Profile
@massenz
massenz / snapshot.sh
Created November 3, 2023 06:54
Shell script to archive & encrypt folders
#!/usr/bin/env zsh
#
# Snapshot archive of all contents in the folder defined in a variable
# called $SOURCE, using $TAR_OPTS tar options.
#
# Created MM, 2012-01-21
# Revised MM, 2023-11-03
set -eu
source ${COMMON_UTILS}/utils
@Thimira
Thimira / resnet50_predict.py
Created September 3, 2017 08:35
How to use the ResNet50 model from Keras Applications trained on ImageNet to make a prediction on an image.
from keras.applications.resnet50 import ResNet50
from keras.preprocessing import image
from keras.applications.resnet50 import preprocess_input, decode_predictions
import numpy as np
model = ResNet50(weights='imagenet')
img_path = 'Data/Jellyfish.jpg'
img = image.load_img(img_path, target_size=(224, 224))
x = image.img_to_array(img)
@lukas-h
lukas-h / license-badges.md
Last active May 1, 2024 10:20
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)