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
<!doctype html> | |
<html ng-app="myapp"> | |
<head> | |
<title>My Angular App</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script> | |
</head> | |
<body> | |
<div ng-controller="MainController" ng-init="init()"> | |
<h1>MainController</h1> |
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
unbind-key C-b | |
set-option -g prefix C-i | |
bind-key C-i send-prefix | |
set-window-option -g utf8 on | |
set-window-option -g mode-keys vi | |
set-window-option -g automatic-rename off | |
set-option -g status-fg white | |
set-option -g status-bg red |
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
import javax.sound.midi.ShortMessage; | |
import javax.sound.midi.Sequencer; | |
import javax.sound.midi.Sequence; | |
import javax.sound.midi.MidiSystem; | |
import javax.sound.midi.MidiMessage; | |
import javax.sound.midi.Transmitter; | |
import javax.sound.midi.Receiver; | |
import javax.sound.midi.MidiUnavailableException; | |
import javax.sound.midi.InvalidMidiDataException; |
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
import bozack.Note; | |
public class DessonanceField { | |
private static final int NOTE_MIN = 12; | |
private static final int NOTE_MAX = 72; | |
private static final int OVERTONE_DEPTH = 5; | |
public static void main (String[] arg) { | |
for (int r = NOTE_MIN; r < NOTE_MAX; r++) { |
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
import java.lang.Math; | |
import java.util.Vector; | |
import java.io.ByteArrayInputStream; | |
import java.io.File; | |
import java.io.IOException; | |
import javax.sound.sampled.*; | |
public class SinWave { | |
private static final float SAMPLE_RATE = 44100.0f; | |
private static final int SAMPLE_SIZE = 16; |
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
<html> | |
<body> | |
<script> | |
document.onkeypress = function keysend() { | |
window.event.returnValue = false; | |
var inputchar = String.fromCharCode(event.keyCode); | |
if (27 == event.keyCode) { inputchar = '<ESC>'; } | |
else if (13 == event.keyCode) { inputchar = '<CR>'; } | |
else if (32 == event.keyCode) { inputchar = '<Space>'; } | |
else if (8 == event.keyCode) { inputchar = '<BS>'; } |
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
use strict; | |
use warnings; | |
use POE qw/Component::Server::HTTP/; | |
use VimRemote::Agent; | |
use Switch; | |
my $aliases = POE::Component::Server::HTTP->new( | |
Port => 80, | |
ContentHandler => { |
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 | |
use strict; | |
use warnings; | |
use POE qw/Component::Server::HTTP/; | |
use VimRemote::Agent; | |
use File::Temp; | |
use File::Slurp qw/read_file/; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project default="compile"> | |
<path id="run.cp"> | |
<fileset dir="lib" includes="*.jar"/> | |
</path> | |
<target name="mkdir"> | |
<mkdir dir="classes"/> | |
</target> |
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
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"> | |
<suite name="bozack test suite" thread-count="1" parallel="tests"> | |
<test name="note"> | |
<classes> | |
<class name="bozack.test.TestNote"> | |
</class> | |
</classes> | |
</test> | |
</suite> |
NewerOlder