Skip to content

Instantly share code, notes, and snippets.

View JoseFilipeFerreira's full-sized avatar
🦓
ryscas

JoseFilipeFerreira

🦓
ryscas
  • Strypes Technical Software
  • Braga, Portugal
View GitHub Profile
@JoseFilipeFerreira
JoseFilipeFerreira / grade.py
Last active May 6, 2021 08:48
grading schemes comparison in VI2
# There are two possible grading schemes(0-20):
# * exam(0-20) + project(0-5)
# * exam(0-20) * 0.5 + project(0-20) * 0.5
# This script tests all the possible combinations of grades printing information on the ones that lead to the student passing
#
# After analizing the output we get that the first is better if you get over 10 on the exam.
# If you get less than 10 on the exam the second is better
for exam in range(1,201,):
for work in range(1,201):
@JoseFilipeFerreira
JoseFilipeFerreira / wallpaper.sh
Last active October 21, 2019 21:41
[wallpaper] create overlay with weather
#!/bin/bash
#USAGE: ./wallpaper.sh [location] [in] [out]
curl wttr.in/$1_tqp0.png > /tmp/weather.png
magick $2 -gravity center -crop 16:9 -resize 1920x1080 /tmp/tmp.png
magick /tmp/tmp.png /tmp/weather.png -geometry +50+50 -composite $3
rm /tmp/tmp.png /tmp/weather.png
@JoseFilipeFerreira
JoseFilipeFerreira / gitignore.java
Last active September 17, 2019 10:18
[Git] gitignore built for Java + IntelliJ + LaTeX
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)