Skip to content

Instantly share code, notes, and snippets.

View KristianLentino99's full-sized avatar

Kristian Lentino KristianLentino99

View GitHub Profile
@KristianLentino99
KristianLentino99 / learning_material
Created March 16, 2024 10:05
Gist which includes all the useful resources to learn Scala. This is part of my "From PHP to Scala: My experience" talk during the Scala Matsuri 2024 in Tokyo
# Learning material for Scala
This is a little gist created for the talk "From PHP to Scala: My experience" in 2024 during the Scala Matsuri.
* <b>[Rock the JVM](https://rockthejvm.com/):</b> One of the best resources you can find honestly. He has a Youtube channel where you can find free courses to Scala and even if free the quality is very high, with this free courses you can understand a lot of how Scala works. But the paid courses are the best part!! Rock the JVM published during the time a lot of different courses. It offers Scala basic and advanced courses and also very specific courses for libraries and frameworks such as Cats, Akka, ZIO ecc...
* <b>[Scala Book](https://docs.scala-lang.org/scala3/book/introduction.html):</b> The Scala book is basically a really quick introduction into the magical world of Scala. The book consists in more than 50 lessons. In my opinion is one of the mandatory stuff you need to read if you want to start working with Scala.
* <b>[Tour of Scala](https://tourofscala.com/)
@KristianLentino99
KristianLentino99 / compress_video.py
Created April 8, 2022 08:27
commando to compress a video with ffmpeg library
import sys
import os
from os import path, system
pathFile = args[1]
outputFile = args[2]
print("Converto file "+pathFile)
ffmpegCommand = f'ffmpeg -y -threads 0 -i {pathFile} -c:v libx264 -x264opts \'keyint=24:min-keyint=24:no-scenecut\' -profile:v high -level 4.0 -vf "scale=min\'(720,iw)\':-4" -crf 22 -movflags faststart -write_tmcd 0 {outputFile}'
#folderModifiche = folderModifiche + nomeProgetto