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 '(javax.sound.sampled AudioSystem DataLine$Info SourceDataLine | |
AudioFormat AudioFormat$Encoding)) | |
(def popular-format | |
(AudioFormat. AudioFormat$Encoding/PCM_SIGNED | |
48000 ; sample rate | |
16 ; bits per sample | |
2 ; channels | |
4 ; frame size 2*16bits [bytes] | |
48000 ; frame 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
#!/usr/bin/perl -w | |
# Perl script to convert HTML files to DokuWiki Markup. | |
# Requires HTML::WikiConverter Perl module | |
use HTML::WikiConverter; | |
print "HTML to DokuWiki markup converter\n"; | |
my $argcnt = $#ARGV + 1; | |
if ($argcnt == 2) { | |
print "Converting..."; |
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
require 'rubygems' | |
require 'benchmark' | |
require 'yaml' | |
require 'zaml' | |
require 'json' | |
yaml_str = <<-eos | |
yaml goes here | |
eos |
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
# sudo gem install bson | |
# sudo gem install bson_ext | |
# sudo gem install yajl-ruby | |
# sudo gem install json | |
# sudo gem install msgpack | |
require 'rubygems' | |
require 'benchmark' | |
require 'yaml' | |
require 'bson' |
NewerOlder