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
#Persistent | |
#SingleInstance Force | |
Send {w up} | |
Send {a up} | |
Send {s up} | |
Send {d up} | |
Deadzone := 0.6 | |
SetTimer Wax, 5 | |
return |
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
global fontsize = 26 | |
function DiffClip(clip c, int diff) | |
{ BlankClip(c, diff).Subtitle(String(-diff), align=5, size=c.Height / 8) } | |
function PadWithDiff(clip c, int len) | |
{ c.FrameCount < len ? c + DiffClip(c, len - c.FrameCount) : c } | |
function DualMonoToStereo(clip left, clip right) | |
{ MergeChannels(ConvertToMono(left), ConvertToMono(right)) } |
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
function lerp(x0, x1, t) | |
return x0*(1-t) + x1*t | |
end | |
function blendExp(x0, x1, t) | |
return x0^(1-t)*x1^t | |
end | |
local sw = 640 | |
local sh = 480 |
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
#!/bin/bash | |
# ultra-fancy ultra-pointless `ls -l` alternative | |
# to be sourced by bash or zsh | |
# similar project: https://github.com/trapd00r/ls-- | |
# to maintain zsh compatibility: | |
# $() is surrounded in double quotes | |
# echo -E is used to avoid \033 expanding | |
# bare asterisks are escaped to prevent globbing | |
# arrays are used instead of relying on word expansion |
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
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#ifndef BUFFER | |
#define BUFFER 4096 | |
#endif | |
uint8_t msg[BUFFER]; | |
/* CRC-32, eg. ethernet */ |
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
#!/bin/zsh | |
in=(**/*.(otf|ttf)) | |
size=16 | |
outdir='rendered-again' | |
lipsum='Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Pellentesque auctor nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper a |
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
#!/bin/zsh | |
q=$1 | |
url='http://danbooru.donmai.us/posts.xml' | |
de=--data-urlencode | |
curl=(curl -sS -m 32 --connect-timeout 8 --retry 3 --retry-delay 1) | |
die() { | |
echo -E "$@" >&2 | |
exit 1 |
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
_srcbase=xorg-drv-vivante | |
pkgname=${_srcbase} | |
pkgver=r5.75c3769 | |
pkgrel=3 | |
arch=(armv7h) | |
url="http://www.kernel.org/" | |
license=('MIT') | |
depends=('gpu-viv-bin-mx6q-x11') | |
provides=("$_srcbase") | |
conflicts=("$_srcbase") |
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
Section "Device" | |
Identifier "i.MX Accelerated Framebuffer Device" | |
Driver "vivante" | |
Option "fbdev" "/dev/fb0" | |
Option "vivante_fbdev" "/dev/fb0" | |
Option "HWcursor" "false" | |
EndSection | |
Section "ServerFlags" | |
Option "BlankTime" "0" |
OlderNewer