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
require 'kramdown' | |
module Jekyll | |
module Converters | |
class Markdown | |
class KramdownParser | |
attr_accessor :kramdown | |
DISPATCHER = Hash.new {|h,k| h[k] = "convert_#{k}"} |
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
### grub configuration for alyzon | |
# | |
# I run FreeBSD/amd64 with root-on-ZFS on a Lenovo ThinkCentre M83, | |
# which has UEFI. At the moment, this configuration is basically | |
# unsupported (although it's coming soon), but I want to be able to | |
# use my system. I've had prior experience with Lenovo UEFI boxes | |
# before (Arch on my ThinkPad T440), and I hate autogenerated GRUB | |
# configs, so I appropriated my hand-written GRUB config, and extended | |
# it. | |
# |
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
#!/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. |
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
has 'Title' => ( | |
isa => 'Scrivener::Title', | |
is => 'ro', | |
traits => [qw(XML)], | |
lazy => 1, | |
description => { | |
LocalName => "Title", | |
Prefix => "", | |
node_type => "child", | |
Name => "Title", |
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
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 |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
require 'rubygems' | |
require 'plist' | |
require 'curses' | |
#require 'mplayer' | |
class Library | |
def initialize() |
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
#!/usr/bin/perl -w | |
use Dancer; | |
prefix '/a' => sub { | |
prefix '/b' => sub { | |
get '/foo' => sub { "Hello!" }; | |
get '/bar' => sub { "Goodbye!" }; | |
}; |
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
#!/usr/bin/perl -w | |
use warnings; | |
use strict; | |
=head1 NAME | |
dancer2test.pl -- test code for Dancer2::Test | |
=head1 SYNOPSIS |
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
# I initialise on L19-22 | |
# let $SAMPLERATE be 48000; I'd like to do this more dynamically, eventually | |
SDL.init(SDL::INIT_AUDIO) | |
SDL::Mixer.open($SAMPLERATE, SDL::Mixer::DEFAULT_FORMAT, 2, 8192) | |
SDL::Mixer.allocate_channels(128) | |
# Inside the class Channel, I play audio on L68 (cherrypicking salient lines). | |
# Typically, there exist 64 Channels. | |
class Channel | |
attr_accessor :sdl, :num |
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
PROJECT = foo | |
include project.mk |
OlderNewer