Skip to content

Instantly share code, notes, and snippets.

View kg4sgp's full-sized avatar

Jimmy Carter kg4sgp

  • Ohio among other places
View GitHub Profile
@kg4sgp
kg4sgp / readoutbits.c
Created March 28, 2012 22:24
displays binary... useing in another program
#include<stdio.h>
char testbit[] = {0x7e,0xff};
unsigned char teststring[] = "THIS IS SO COOL";
void leftShift(unsigned char*, long unsigned int);
void displayBits(char*, int);
void leftShift(unsigned char *array, long unsigned int length){ //this function works
#!/bin/bash
for x in `ls ./*`;
do for i in {1..64};
do ./errbit 2400 hts1_2k4.c2 hts1_2k4_$i.c2 $i;
done;
done;
yum info kmod-nvidia
Loaded plugins: fastestmirror, langpacks, presto
Determining fastest mirrors
* fedora: mirror.umd.edu
* rpmfusion-free: mirror.us.leaseweb.net
* rpmfusion-free-updates: mirror.us.leaseweb.net
* rpmfusion-nonfree: mirror.us.leaseweb.net
* rpmfusion-nonfree-updates: mirror.us.leaseweb.net
* updates: mirror.liberty.edu
adobe-linux-i386 17/17
@kg4sgp
kg4sgp / aframe.c
Created April 24, 2013 06:54
ax.25 UI framer, non working crc. Ugly code...
// Jimmy Carter - KG4SGP
// ax.25 UI framer
// compile with gcc aframe.c -o aframe
#include <stdio.h>
#include <string.h>
#define poly (0x1201)
unsigned char flag = 0x7e; //ax.25 start/stop flag
@kg4sgp
kg4sgp / aframe.c
Created April 24, 2013 06:54
ax.25 UI framer, non working crc. Ugly code...
// Jimmy Carter - KG4SGP
// ax.25 UI framer
// compile with gcc aframe.c -o aframe
#include <stdio.h>
#include <string.h>
#define poly (0x1201)
unsigned char flag = 0x7e; //ax.25 start/stop flag
@kg4sgp
kg4sgp / aframe.c
Created April 24, 2013 06:55
ax.25 framer, ugly code and unworking crc
// Jimmy Carter - KG4SGP
// ax.25 UI framer
// compile with gcc aframe.c -o aframe
#include <stdio.h>
#include <string.h>
#define poly (0x1201)
unsigned char flag = 0x7e; //ax.25 start/stop flag
@kg4sgp
kg4sgp / aframe.c
Created April 24, 2013 06:56
ax.25 framer, ugly code and unworking crc
// Jimmy Carter - KG4SGP
// ax.25 UI framer
// compile with gcc aframe.c -o aframe
#include <stdio.h>
#include <string.h>
#define poly (0x1201)
unsigned char flag = 0x7e; //ax.25 start/stop flag
// Jimmy Carter - KG4SGP
// ax.25 UI framer
// compile with gcc aframe.c -o aframe
#include <stdio.h>
#include <string.h>
#define poly (0x1201)
unsigned char flag = 0x7e; //ax.25 start/stop flag
import java.io._
object Baudot {
val ShiftToFigures = 0x1b
val ShiftToLetters = 0x1f
val figures = Map(
0.toChar -> 0x0,
' ' -> 0x4,
'1' -> 0x1d,
// Program to make a table of sine values.
// I release this to public domain.
#include<stdio.h>
#include<math.h>
int main(){
float pi = 3.14159265358979323846264338327;
int max = pow(2,7); // this should be HALF the value for 16bits so (2^16)/2