Skip to content

Instantly share code, notes, and snippets.

View Romain's full-sized avatar

Romain Biard Romain

View GitHub Profile
@Romain
Romain / massively-convert-videos-from-mp4-to-webm.sh
Last active May 6, 2021 18:25
Shell to massively convert videos from MP4 to WebM using FFMPEG
#!/bin/sh
for i in *.mp4;
do name=`echo "$i" | cut -d'.' -f1`
echo "$name"
ffmpeg -i "$i" -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis "${name}.webm"
done
@Romain
Romain / skyverge-test.php
Last active October 28, 2019 13:21
SkyVerge Code Review
<?php
/**
* This code retrieves course data from an external API and displays it in the user's
* My Account area. A merchant has noticed that there's a delay when loading the page.
*
* == What changes would you suggest to reduce or remove that delay? ==
* => Ideally, the courses would be collected asynchronously, with an AJAX request, and then, the array would be populated with the result.
* => Below is just a small change to improve the performance of the actual loop.
*/
public function add_my_courses_section() {
Verifying that +rbiard is my blockchain ID. https://onename.com/rbiard