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
packages: | |
# gcc: | |
# paths: | |
# [email protected]%[email protected]: /usr/local | |
# buildable: False | |
# version: [4.9.4] | |
llvm: | |
paths: | |
[email protected]%[email protected]: /usr/local |
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
SOURCES = foo.cc bar.cc | |
CXXFLAGS = -Wall -ansi -pedantic -Werror | |
all: main | |
main: $(SOURCES:.cc=.o) | |
$(CXX) $? -o $@ | |
clean: | |
$(RM) $(SOURCES:.cc=.o) |
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
// This gist intends to provide an helper function to create | |
// std::initializer_list of a certain size with a fixed value. | |
// 2 implementations are available: | |
// | |
// 1. the `constant_int`: only support integer values | |
// 2. the `constant`: support any kind of value | |
// | |
// This piece of code requires C++17 standard | |
// use-case: |
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
#include <initializer_list> | |
template <int... Values> | |
struct integer_sequence {}; | |
template <std::size_t Size, int...Accu> | |
struct ones_traits { | |
using type = typename ones_traits<Size - 1, 1, Accu...>::type; | |
}; |
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
"""Script used to extract audio tracks from MP4 videos to MP3 | |
with ffmpeg. The script processes multiple files simultaneously. | |
Examples: | |
# To extract the audio track from my-video.mp4 | |
# and write it in my-videos.mp3: | |
python3 mp4tomp3.py my-video.mp4 | |
# the script accepts multiple arguments |
OlderNewer