Skip to content

Instantly share code, notes, and snippets.

@camateg
camateg / TANKS.bas
Last active September 7, 2022 18:48
Tanks artillery game for AppleSoft BASIC
10 HGR
15 HOME : VTAB 24
20 HCOLOR= 1
30 DIM TER(300)
40 TER(0) = 120
50 FOR X = 1 TO 279
60 TER(X) = TER(X -1) + RND(1) *4 -2
70 NEXT X
100 FOR X = 0 TO 279
110 HPLOT X,TER(X) TO X,191
@camateg
camateg / slot_game.bas
Last active January 3, 2023 01:40
Slot Game for Apple I
10 M = 100
20 PRINT:PRINT:PRINT:PRINT:PRINT " SLOT GAME"
30 PRINT:PRINT:PRINT
40 PRINT "HOW MUCH WOULD YOU LIKE TO BET? YOU HAVE $";
50 PRINT M
60 INPUT B
70 B = ABS(B)
80 IF B > M THEN PRINT "YOU DON'T HAVE ENOUGH!"
90 IF B > M THEN GOTO 30
100 FOR C = 1 TO 10
@camateg
camateg / digispark.rules
Last active December 27, 2021 22:05
For /etc/udev/rules.d
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0753", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="16d0", ATTRS{idProduct}=="0753", MODE:="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
@camateg
camateg / ir_new_ashton.ino
Last active November 13, 2021 22:21
New IR Remote
#include <IRremote.h>
#define IR_PIN 11
IRrecv irrecv(IR_PIN);
void setup() {
Serial.begin(9600);
irrecv.enableIRIn();
}
#define LEDPWM 3
#define POT A1
void setup() {
pinMode(LEDPWM, OUTPUT);
pinMode(POT, INPUT);
Serial.begin(9600);
}
void loop() {
@camateg
camateg / butler_pa_freq.csv
Last active August 13, 2024 16:31
CSV of Useful Radio Frequencies / Butler, PA
Name Category Frequency RX Frequency TX Tone Mode
2m Simplex Calling Amateur 146.5200 146.5200 NA FM
2m Simplex Amateur 146.4000 146.4000 NA FM
2m Simplex Amateur 146.4150 146.4150 NA FM
2m Simplex Amateur 146.4300 146.4300 NA FM
2m Simplex Amateur 146.4450 146.4450 NA FM
2m Simplex Amateur 146.4600 146.4600 NA FM
2m Simplex Amateur 146.4750 146.4750 NA FM
2m Simplex Amateur 146.4900 146.4900 NA FM
2m Simplex Amateur 146.5050 146.5050 NA FM
@camateg
camateg / light.ino
Last active August 12, 2017 03:52
Arduino Light
#include <IRremote.h>
#define RECV_PIN 11
bool toggle = true;
int num = 0;
bool print_num = false;
bool do_blink = false;
IRrecv irrecv(RECV_PIN);
@camateg
camateg / repeaters.json
Created June 8, 2017 18:24
Repeater list in JSON
This file has been truncated, but you can view the full file.
{"Alabama":[{"output":"145.31000","input":"144.71000","tone_out":"","tone_in":"","call_sign":"KI4SAZ","desc":"KI4SAZ-C (Magnolia Springs)","county":"Baldwin"},{"output":"145.43000","input":"144.83000","tone_out":"123.0 PL","tone_in":"123.0 PL","call_sign":"KD4HYG","desc":"North Baldwin County Amateur Radio Club (Raburn)","county":"Baldwin"},{"output":"146.68500","input":"146.08500","tone_out":"82.5 PL","tone_in":"82.5 PL","call_sign":"KI4ELU","desc":"South Baldwin Amateur Radio Club (Robertsdale)","county":"Baldwin"},{"output":"147.04500","input":"147.64500","tone_out":"","tone_in":"123.0 PL","call_sign":"WB4EMA","desc":"WB4EMA (linked with 147.09 Robertsdale)","county":"Baldwin"},{"output":"147.09000","input":"147.69000","tone_out":"82.5 PL","tone_in":"82.5 PL","call_sign":"WB4EMA","desc":"Baldwin County Emergency Management Agency","county":"Baldwin"},{"output":"444.17500","input":"449.17500","tone_out":"CSQ","tone_in":"203.5 PL","call_sign":"K4JIE","desc":"K4JIE (Bay Minette)","county":"Baldwin"},{"output"
@camateg
camateg / itunes.rb
Created December 3, 2016 15:27
iTunes top 100 list...
require 'open-uri'
require 'json'
region = "us"
category = "newapplications"
if !ARGV[0].nil?
region = ARGV[0]
end
@camateg
camateg / arrl_parse.rb
Created September 2, 2015 21:28
Parse ARRL Question Pools.
require 'json'
require 'pp'
type = ARGV[0]
questions = []
lines = []
question_pos = []
file = File.open(type + '.txt', 'r').each_line do |line|