This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygal | |
import datetime | |
import statistics | |
apple_filename = "rosta_–_duty_calendar-sessions-20161001-20200629.csv" | |
def every_n_dates_criteria(n): | |
return lambda date, data: len(data) == n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// WeeklyCalendarUITests.swift | |
// WorkRosterAppUITests | |
// | |
// Created by Mariano Heredia on 06/05/2020. | |
import XCTest | |
class TestAddTodayWidget: XCTestCase { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# AppStore requires an apppreview that doesn't exceed X size, no more than Y fps and MUST have two-channel audio. | |
# This script assumes a device recorded video with QuickTime as input. It's too slow, give size exceeded error and the audio is background noise | |
# As output we have: Speed up video – 2x – at 30fps, remove original audio and add silence two-channel audio | |
# Sources: | |
# https://stackoverflow.com/a/12375018 | |
# https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video | |
# https://trac.ffmpeg.org/wiki/ChangingFrameRate | |
# https://ffmpeg.org/ffmpeg-filters.html#Examples-67 | |
# https://superuser.com/a/1354557 | |
#!/bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# setpts=0.5*PTS -> https://trac.ffmpeg.org/wiki/How%20to%20speed%20up%20/%20slow%20down%20a%20video | |
# video to gif https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/ | |
# loop=1 | |
ffmpeg -i how\ to.mov -filter_complex "[0:v] loop=1,setpts=0.25*PTS,fps=2,scale=480:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" tutorial.gif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i 1.mp4 -i 2.mp4 -filter_complex "nullsrc=size=720x1280 [base]; [0:v] setpts=PTS-STARTPTS, scale=720x640 [top]; [1:v] setpts=PTS-STARTPTS, scale=720x640 [bottom]; [base][top] overlay=shortest=1 [tmp]; [tmp][bottom] overlay=shortest=1:y=640" -c:v libx264 output.mkv |