Skip to content

Instantly share code, notes, and snippets.

View jashank's full-sized avatar

Jashank Jeremy jashank

View GitHub Profile
@jashank
jashank / spoons.rb
Created August 9, 2012 02:21
Nonsense values for selected_line
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'rubygems'
require 'plist'
require 'curses'
#require 'mplayer'
class Library
def initialize()
@jashank
jashank / .htaccess
Created July 11, 2012 07:36
Apache config
Options +FollowSymLinks
AddHandler cgi-script .cgi
AddHandler fastcgi-script .fcgi
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ dispatch.cgi?/$1 [QSA,L]
# nicked from gportal, patched for Tingle
@jashank
jashank / BinderItem.pm
Created June 24, 2012 03:50
Converting collection to individual
has 'Title' => (
isa => 'Scrivener::Title',
is => 'ro',
traits => [qw(XML)],
lazy => 1,
description => {
LocalName => "Title",
Prefix => "",
node_type => "child",
Name => "Title",
@jashank
jashank / jove.pl
Created April 12, 2012 00:50
Planet Jupiter receiver
#!/opt/local/bin/perl -w
# jove -- listen to jupiter
#
# We get a constant 1ch s16le bitstream on <STDIN>. Not
# optimal, I know. We are constantly reading from the
# bitstream, in one of two modes:
# - in SLAB mode, the samples are then preserved, processed and
# dumped to outputs (logfile, slabfile, slabstat, quadfile).
# - in NOTSLAB mode, the samples are ignored. This also gives
# us some processing headroom.