Skip to content

Instantly share code, notes, and snippets.

@russdill
russdill / jump_table.h
Last active December 12, 2022 08:28
Example of AVR custom jump tables using inline assembler "asm goto" construct
#ifndef JUMP_TABLE_H
#define JUMP_TABLE_H
#define MAP_OUT
#define EVAL0(...) __VA_ARGS__
#define EVAL1(...) EVAL0 (EVAL0 (EVAL0 (__VA_ARGS__)))
#define EVAL2(...) EVAL1 (EVAL1 (EVAL1 (__VA_ARGS__)))
#define EVAL3(...) EVAL2 (EVAL2 (EVAL2 (__VA_ARGS__)))
#define EVAL4(...) EVAL3 (EVAL3 (EVAL3 (__VA_ARGS__)))
The views and comments express some spatial by its guest collars trendless belong to them. The space show in a toast serve only as a platform and are not responsible for others comments or views. All topics discuss them spatial or primarily for educational purposes.
Thank you very much for tuning in. We have one of our favorite all-time guests with us tonight Dr. Zuber and so I'm gonna cut to the chase and skip most of the the front end work in the announcements and I'm gonna treat the program as a short one and just call out our sponsors so that we can maximize our talk time with Bob but our phone number for those of you who would like to call us is toll-free one eight, six, six six, eight seven seven, two, two three.
An email is Doctor Space Dr. SPACE at the space show dot com do check our website newsletter, it's posted on our website in the upper right hand corner and it shows everything for this week plus all of the programming through the first quarter and the start of second quarter of 2020 a coup
#!/usr/bin/python3
import gatt
import struct
import signal
import binascii
import sys
import os
import fcntl
import gi.repository
#!/usr/bin/python
import beacon
import struct
import uuid
import collections
MFG_ID_DISNEY = 0x0183
AFFILIATION_SCOUNDREL = 0
@russdill
russdill / remoteconsole.py
Created December 7, 2017 10:00
BF1942 remote console
#!/usr/bin/python
import socket
import struct
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--username', '-u', action='store', required=True)
parser.add_argument('--password', '-p', action='store', required=True)
parser.add_argument('host')
ha#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# 2015 Michael Stucky
#
# This script is based on Raymond Wagner's transcode wrapper stub.
# Designed to be a USERJOB of the form </path to script/transcode-h264.py %JOBID%>
#
# Modifications
#
@russdill
russdill / lynq-scrape.py
Created January 6, 2016 13:08
LynqSat scraper
#!/usr/bin/env python
from urlparse import urljoin
from bs4 import BeautifulSoup
from xml.etree.ElementTree import Element, SubElement, ElementTree
import urllib2
import os.path
import sys
import guide_data
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import mechanize
import cookielib
import struct
import ssl
import base64
import collections
EYE_PATTERN=$(DARTER_PATH)/eye-pattern.py
CHECK_TIMING=$(DARTER_PATH)/check_timing.py
CHECK_VALUES=$(DARTER_PATH)/check_values.py
nor.net: nor_clock.sch \
nor_in.sch \
nor_out.sch \
nor_power.sch \
nor.sch \
nor_select.sch
* foo
.param spec=1
.include nor.cir
.end