Skip to content

Instantly share code, notes, and snippets.

View naikrovek's full-sized avatar

Jeremiah Johnson naikrovek

View GitHub Profile
@naikrovek
naikrovek / visascope.cs
Created May 28, 2014 22:15
Simple little test app I wrote to test VISA instrument control. This will require changes in order to be useful. BONUS: Dumper class, useful for many things around the house!
using Ivi.Visa.Interop;
using System;
using System.IO;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Runtime.Remoting;
using System.Runtime.Serialization;
namespace ConsoleApplication1 {
// by Dave @ Bees & Bombs >:)
int[][] result;
float time;
void setup() {
setup_();
result = new int[width*height][3];
}
// by Dave @ beesandbombs >:)
int[][] result;
float time;
void setup() {
setup_();
result = new int[width*height][3];
}
void setup() {
size(500, 500);
smooth(8);
noStroke();
}
float t, tt, ht, x, y;
int N = 11;
float l = 24;
float sp = l*1.5;
int[][] result;
float time;
void setup() {
setup_();
result = new int[width*height][3];
}
void draw() {
for (int i=0; i<width*height; i++)
float th1, th2, r1 = 110, r2 = 100;
float d;
float x, y, t;
int N = 66;
float s = .0015;
int nf = 320;
float tt;
void setup() {
size(500, 500, P2D);
void setup() {
size(500, 500);
rectMode(CENTER);
noStroke();
}
float x, y, t, tt;
color c1 = color(32), c2 = color(240, 0, 0), cb = color(245);
int N = 10;
float spm = 60, sp, l1 = spm/2, l2 = spm/4;
@naikrovek
naikrovek / A.mdown
Created June 30, 2014 16:39 — forked from rmmh/A.mdown

DCPU-16 Spec Suggestions

  1. Evaluate b before a

This makes instructions that address the stack twice meaningful instead of confusing and useless.

ADD PEEK, POP should pop the top of the stack and add it to the second entry, but currently the PEEK is evaluated before the POP occurs.

  1. Add [SP+next word] addressing
package computer;
// Referenced classes of package computer:
// KeyMapping
public class AWTKeyMapping extends KeyMapping
{
public AWTKeyMapping()
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>AudioList</key>
<array>
<dict>
<key>AudioBitrate</key>
<string>160</string>