Skip to content

Instantly share code, notes, and snippets.

View ZoomTen's full-sized avatar
🤔
Rabble rabble tech blabble

Zumi ZoomTen

🤔
Rabble rabble tech blabble
View GitHub Profile
# Personal patch for xfce4-session Simple engine.
# Crap, but it'll do
# * Moves the info text INSIDE the image.
# * Adds a "text border" option - defines the padding between
# the canvas and the text.
# * Adds a "BorderThickness" entry in Xfconf
# * Disables shadow effect
--- simple2.c 2017-07-21 16:15:37.468585431 +0700
+++ simple.c 2017-07-21 16:09:13.090351000 +0700
@ZoomTen
ZoomTen / PKGBUILD
Created March 17, 2018 08:12
PKGBUILD for MaXX Interactive Desktop
pkgname=maxx-desktop-bin
pkgver=1.1.0
pkgrel=0
pkgdesc="MaXX Interactive Desktop - community edition"
arch=("x86_64")
url="http://www.maxxinteractive.com"
license=('unknown')
depends=(
'adobe-source-code-pro-fonts'
'ttf-dejavu'
@ZoomTen
ZoomTen / olive.md
Last active March 13, 2019 02:58
breakdown of the olive ove file format

Olive .OVE breakdown (wip)

Structure

This is a standard, XML v.1.0 file that represents a project file written and read by the Olive Video Editor.

The file contents are enclosed within a single <project> element which houses all the links to the media files and all the sequence data needed for the project.

This file has a MIME type of org.olivevideoeditor.Olive.

XML Elements

@ZoomTen
ZoomTen / user-familiar.css
Last active April 8, 2019 17:14
simple CSS style for Olive
/* base dark style */
MainWindow, MainWindow *{background-color:rgb(35,35,35); color:white;}
/* separators */
QMainWindow::separator {
background:rgb(26,26,26);
border: 0;
spacing: 0;
padding: 0;
}

slomo.vpy

from vapoursynth import core

# vf is set in view/render script, points to video file in current directory
source = core.ffms2.Source(vf)
msuper = core.mv.Super(source, pel=2)

# analyze motion vectors
back = core.mv.Analyse(msuper,blksize=8, overlap=2, isb=True, search=3)
REM === Run using MSYS2 with MINGW32 ===
REM === Copy this script to your home directory ===
REM Set path and defs
set CONSOLE=msys32
set MSYSTEM=mingw32
PATH C:\%CONSOLE%\%MSYSTEM%\bin;C:\%CONSOLE%\usr\bin;%PATH%
REM remove lines 11 and 12 for a local copy
@ZoomTen
ZoomTen / markup_calc.py
Created January 15, 2020 02:07
Program to calculate ideal HTML file size, based on: https://cutcodedown.com/article/minimalist_semantic_markup. Usage: python markup_calc.py <file name>
#!usr/bin/python
import sys
import requests
from bs4 import BeautifulSoup
from bs4 import Comment
def get_plaintext_size(soup):
out = ''
text = soup.find_all(text=True)

This is a RenderChan module for Olive Video Editor.

Made for use with my patched Olive... make sure you download and build beforehand.

Save the file below to (Renderchan directory)/renderchan/contrib/olive.py.

Olive 0.2.0 File Format

Overview

The Olive Video Editor project file ("project file") is a standard XML 1.0 file that can be written and read by the Olive video editor.

This file contains the project's sequence data, color management settings, media file links, and other project data. It has a MIME type of application/vnd.olive-project.

Being XML-based, it is easy to edit and read both by humans and by applications. For example, fixing corrupted project files are easily done through a text editor or an automated program.

@ZoomTen
ZoomTen / PKGBUILD
Created June 17, 2020 13:54
Sample PKGBUILD for theApp
pkgname=theapp
pkgver=0.01
pkgrel=0
pkgdesc="A sample app for the-libs"
arch=("x86_64")
url="https://github.com/ZoomTen/theApp"
license=('GPL3')
depends=('qt5-base' 'the-libs')
makedepends=('git')
source=("$pkgname-$pkgver"::'git+https://github.com/ZoomTen/theApp#branch=master')