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
# (product name, unit weight) | |
# D'Addario stock via http://www.daddario.com/upload/tension_chart_13934.pdf | |
# Circle K String stock http://circlekstrings.com/CKSIMAGES/UnitWeightChart130105.pdf | |
# string names don't necessarily match up with their actual product names | |
daddario_plain_steel = ( | |
('DAPL007' , .00001085), | |
('DAPL008' , .00001418), |
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
__root: &__root_t0x4004f960 | |
_G: *__root_t0x4004f960 | |
_VERSION: Lua 5.1 | |
arg: &arg_t0x40055cc8 | |
"-1": luajit | |
0: run.lua | |
assert: fbuiltin#2 | |
bit: &bit_t0x40054d58 | |
arshift: fbuiltin#70 | |
band: fbuiltin#73 |
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
// C port of http://ldesoras.free.fr/prod.html#src_hiir | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <math.h> | |
#include <errno.h> | |
const double PI = 3.1415926535897932384626433832795; | |
void | |
compute_transition_param(double *kp, double *qp, double transition) |
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
import subprocess as sp | |
import os | |
def ogg(fin, fout): | |
p1 = sp.Popen(["ffmpeg", "-loglevel", "error", "-i", fin, "-f", "flac", "-"], stdout=sp.PIPE) | |
p2 = sp.Popen(["oggenc", "-Q", "-q", "5", "-", "-o", fout], stdin=p1.stdout, stdout=sp.PIPE) | |
p1.stdout.close() | |
p2.communicate() | |
ret = p1.poll() or p2.poll() | |
return ret |
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
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" |
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
_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 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/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 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/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 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
#include <stdint.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#ifndef BUFFER | |
#define BUFFER 4096 | |
#endif | |
uint8_t msg[BUFFER]; | |
/* CRC-32, eg. ethernet */ |