Skip to content

Instantly share code, notes, and snippets.

@qubodup
qubodup / tiletest.py
Created Feb 23, 2019
Blender Tile Size Performance Test Script
View tiletest.py
import bpy
import time
from datetime import datetime
from bpy.app import handlers
print("================")
global DEVICES
global RESOLUTIONS
global CLOCK
@qubodup
qubodup / vistest.mlt
Created Nov 25, 2018
Shotcut Audio visualization test project. You can open it and replace the files to test different configs yourself!
View vistest.mlt
<?xml version="1.0" encoding="utf-8"?>
<mlt LC_NUMERIC="en_US" version="6.11.0" title="Shotcut version 18.11.18" producer="main_bin">
<profile description="HD 1080p 25 fps" width="1920" height="1080" progressive="1" sample_aspect_num="1" sample_aspect_den="1" display_aspect_num="16" display_aspect_den="9" frame_rate_num="60" frame_rate_den="1" colorspace="709"/>
<playlist id="main_bin">
<property name="xml_retain">1</property>
</playlist>
<producer id="black" in="00:00:00.000" out="00:01:01.533">
<property name="length">3693</property>
<property name="eof">pause</property>
<property name="resource">black</property>
View materials_cycles_converter.py
# convert_materials_to_cycles.py
#
# Copyright (C) 5-mar-2012, Silvio Falcinelli. Fixes by others.
#
# special thanks to user blenderartists.org cmomoney
#
# ***** BEGIN GPL LICENSE BLOCK *****
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@qubodup
qubodup / WebVfx.js
Created Mar 13, 2018
WebVfx.js Elusien's Shotcut WebVfx Framework Backup
View WebVfx.js
/*
=====================================================================
Elusien's WebVfx framework for Shotcut (http://elusien.co.uk/shotcut)
=====================================================================
This framework enables Shotcut HTML Overlay filters to be developed quickly using a modern browser,
with all its development tools (e.g. using function key F12) at your disposal. Shotcut does not have any
such tools, other than a basic console.log, and in many cases of error you just end up with a blank screen.
You can style the HTML elements as normal using CSS then modify the properties you want to animate
@qubodup
qubodup / credits.htm
Last active Dec 14, 2019
Shotcut Scrolling Credits Text Animation WebVfx example
View credits.htm
<!DOCTYPE html><html><head><meta charset="UTF-8">
<script src="qrc:/scripts/jquery.js"></script>
<script src="qrc:/scripts/rangy-core.js"></script>
<script src="qrc:/scripts/rangy-cssclassapplier.js"></script>
<script src="qrc:/scripts/htmleditor.js"></script>
<!-- this is possible thanks to http://www.elusien.co.uk/shotcut/ -->
<style>
html, body {margin: 0; width: 100%; height: 100%; overflow: hidden; }
#credits {position: absolute; top: 100%; width: 100%; padding: 25px 0; margin:0; text-align: center;}
/****************************************/
View openinterminal.contract
[Contractor Entry]
Name=Open terminal here
Icon=terminal
Description=Open terminal here
MimeType=inode;application/x-sh;application/x-executable;
Exec=pantheon-terminal -w %U
Gettext-Domain=pantheon-terminal
@qubodup
qubodup / arrow-key-to-touch-main.lua
Created Dec 14, 2016
LOVE2D Touchscreen Arrow Key Area Buttons Implementation (CC0) Video tutorial: https://youtu.be/sArl6wypDfY
View arrow-key-to-touch-main.lua
-- code by Iwan 'qubodup' Gabovitch
-- licesnse/terms: public domain (cc0)
-- meaning do what you want, no credit needed, you can delete this text too
-- video tutorial: https://youtu.be/sArl6wypDfY
-- you can make a bee.png from https://openclipart.org/detail/215877/cartoon-bee
function love.load()
gw = love.graphics.getWidth() -- game width
gwp = gw/10 -- game widht "part"
View moc linux music player HELP page
Because ctrl+f
q Detach MOC from the server
ENTER Start playing at this file or go to this directory
DOWN Move down in the menu
UP Move up in the menu
PAGE_DOWN Move one page down
PAGE_UP Move one page up
HOME Move to the first item in the menu
END Move to the last item in the menu
@qubodup
qubodup / phpbbyoutube
Created Apr 12, 2015
simple, secure phpbb embedding NO EXTENSION NEEDED
View phpbbyoutube
For this video: http://youtu.be/mxce5nKIe5k
[youtube]{SIMPLETEXT}[/youtube]
<iframe width="560" height="410" src="http://www.youtube.com/embed/{SIMPLETEXT}"></iframe><br />
<a href="http://youtu.be/{SIMPLETEXT}">youtu.be/{SIMPLETEXT}</a>
[youtube]VideoID[/youtube] example: [youtube]mxce5nKIe5k[/youtube]
View kqscriptfix
# http://stackoverflow.com/questions/21146211/
for i in $*
do
echo $i
sed \
-e 's/get_progress(P_\([_A-Za-z0-9]*\))/progress\.\L\1/g' \
-e 's/set_progress(P_\([_A-Za-z0-9]*\), \([0-9_a-zA-Z+ -\.]*\))/progress\.\L\1 = \2/g' \
-e 's/P_\([_A-Z0-9]*\)/progress\.\L\1/g' \
$i > $i-low
mv $i-low $i
You can’t perform that action at this time.