ffmpeg -i video.mp4 -vf "select=eq(pict_type\,I)" -vsync vfr -qscale:v 2 still-%02d.jpg
View ffmpeg-extract-keyframes.md
View vimeo-downloader.js
This file contains 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
// 1. Open the browser developper console on the network tab | |
// 2. Start the video | |
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL | |
// 4. Run: node vimeo-downloader.js "<URL>" | |
// 5. Combine the m4v and m4a files with mkvmerge | |
const fs = require('fs'); | |
const url = require('url'); | |
const https = require('https'); |
View 1.phugo-gallery-generator.md
Phugo
Gallery generator forFor each directory in content
it generates or updates the _index.md
file with the list of all JPG files in the directory.
If _index.md
already exists, it's metadata will be kept, the rest is overwritten.
If the metadata of the _index.md
file contains manual: true
, the directory is ignored.
The thumbnails must be named by the original name prefixed by _th_
.
View penrose-cube.ascii.txt
This file contains 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
______________________________ | |
/ __________________________ /| | |
/ / ________________________/ / | | |
/ / /| | / / | | |
/ / / | | / / . | | |
/ / /| | | / / /| | | |
/ / / | | | / / / | | | |
/ / / | | | / / /| | | | |
/ /_/___| | |_______________/ / / | | | | |
/________| | |________________/ / | | | |
View readwrite-xmp.md
Read
$ exiftool -xmp -b file.jpg > data.xmp
Write
$ exiftool -tagsfromfile data.xmp -all:all file.jpg
View qchecklist.h
This file contains 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
#ifndef QCHECKLIST | |
#define QCHECKLIST | |
#include <QWidget> | |
#include <QComboBox> | |
#include <QStandardItemModel> | |
#include <QLineEdit> | |
#include <QEvent> | |
#include <QStyledItemDelegate> | |
#include <QListView> |
View qtabwidgetext.h
This file contains 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
#ifndef QTABWIDGETEXT | |
#define QTABWIDGETEXT | |
#include <QTabWidget> | |
/** | |
* @brief QTabWidget which allow to set the current tab by its name | |
*/ | |
class QTabWidgetExt : public QTabWidget | |
{ |
View vcredist.iss
This file contains 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
; The VCRedistNeedsInstall function checks if a given version of VC++ is already installed | |
; Modify the function with one (or more) of the VC_* constants to suit your version | |
[Run] | |
Filename: "{app}\redist\vcredist_x86.exe"; Parameters: "/q /norestart /q:a /c:""VCREDI~3.EXE /q:a /c:""""msiexec /i vcredist.msi /qn"""" """; Check: VCRedistNeedsInstall; WorkingDir: {app}\redist; StatusMsg: Installing VC++ 2013 Redistributables... | |
[Code] | |
#IFDEF UNICODE | |
#DEFINE AW "W" | |
#ELSE |
View qboutongroupext.hpp
This file contains 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
#ifndef QBUTTONGROUPEXT | |
#define QBUTTONGROUPEXT | |
#include <QButtonGroup> | |
#include <QAbstractButton> | |
/** | |
* @brief QButtonGroup which allow to set the checked radio button by its id | |
*/ | |
class QButtonGroupExt : public QButtonGroup |
View qlineeditcolor.hpp
This file contains 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
#ifndef QLINEEDITCOLOR | |
#define QLINEEDITCOLOR | |
#include <QtWidgets/QLineEdit> | |
#include <QColorDialog> | |
#include <QEvent> | |
/** | |
* @brief A QLineEdit combined with a QColorDialog | |
* @signal colorChanged(QColor) |
NewerOlder