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
############################################################################ | |
# Function that automatically creates the owlcraft intro from an input clip # | |
############################################################################ | |
function makeMCintro(clip c) | |
{ | |
# Standard variables for section lengths | |
section1_l = 80 | |
main_l = 140 | |
section3_l = 44 |
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
################################################################### | |
# A function to add minecraft styled subtitles to owlcraft videos # | |
# TODO: Use SubtitleEX instead # | |
################################################################### | |
# Args | |
# c -> the input clip | |
# text -> the text to be displayed | |
# start_in -> the beginning time of the subtitle (in frames) | |
# end_in -> the end time of the subtitle (in frames) |
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
################################################## | |
# Function to change the speed of clip c by rate # | |
################################################## | |
function ChangeSpeed(clip c, float rate) | |
{ | |
orig = c.framerate | |
newvid = AssumeFPS(c, orig * rate) | |
return ChangeFPS(newvid, c, linear=false)#.AudioDub(c.TimeStretch(tempo=100*rate)) | |
} |
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
############################################################################### | |
# Function that allows for a clockwipe transition between the two input clips # | |
############################################################################### | |
Function clockwipe(clip bottom,clip top, int "Duration", float "blurriness") | |
{ | |
width=bottom.width() | |
height=bottom.height() | |
wb=blankclip(bottom,duration,color=$FFFFFF) |
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
def col2letter(col): | |
if col > 0 and col <= 16384: | |
a1 = chr((col / 26 ** 2) + 64) * (col > 26 ** 2) | |
a2 = chr(((col % 26 ** 2) / 26 - (not col % 26)) + 64) * (col > 26) | |
a3 = chr((col % 26 + (26 * (not col % 26))) + 64) | |
return ''.join((a1, a2, a3)) |
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
#!/usr/bin/env python | |
import requests | |
from xml.etree import ElementTree | |
from optparse import OptionParser | |
from random import sample | |
# Plex host | |
host = "127.0.0.1" | |
# Plex port |
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
#!/bin/bash | |
gitpullall() { | |
# Turn off noclobber in zsh, keep quiet in bash | |
unsetopt noclobber 2>/dev/null | |
for i in $(find ~/test_repos -name '.git'|xargs dirname|sort);{ | |
cd "$i" | |
newfiles=$(git st|grep modified|sed 's/.*: *//') | |
tmpfile=$(mktemp) | |
echo '# Uncommented files will be added to commit' >> $tmpfile |
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
rofi usage: | |
rofi [-options ...] | |
Command line only options: | |
-no-config Do not load configuration, use default values. | |
-v,-version Print the version number and exit. | |
-dmenu Start in dmenu mode. | |
-display [string] X server to contact. | |
${DISPLAY} | |
-h,-help This help message. |
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
rofi usage: | |
rofi [-options ...] | |
Command line only options: | |
-no-config Do not load configuration, use default values. | |
-v,-version Print the version number and exit. | |
-dmenu Start in dmenu mode. | |
-display [string] X server to contact. | |
${DISPLAY} | |
-h,-help This help message. |
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
# make tmux display things in 256 colors | |
set -g default-terminal 'screen-256color' | |
set -g terminal-overrides ',xterm-256color:Tc' | |
set -as terminal-overrides ',xterm*:sitm=\E[3m' | |
# Lower escape timing from 500ms to 50ms for quicker response to scroll-buffer access. | |
set -s escape-time 50 | |
# Rebind prefix from ctrl+b to ctrl+a | |
set -g prefix C-a |
OlderNewer