Skip to content

Instantly share code, notes, and snippets.

======================
Proton: 1697712483 proton-8.0-4c
SteamGameId: 881100
Command: ['/home/jon/.local/share/Steam/steamapps/common/Noita/noita.exe']
Options: {'forcelgadd'}
depot: 0.20231107.66301
pressure-vessel: 0.20231107.1 scout
scripts: 0.20231107.1
sniper: 0.20231107.66301 sniper 0.20231107.66301
Kernel: Linux 6.5.5-100.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Sep 23 22:53:27 UTC 2023 x86_64
Computer Information:
Manufacturer: ASUSTeK COMPUTER INC.
Model: PRIME X570-P
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: AuthenticAMD
CPU Brand: AMD Ryzen 7 3700X 8-Core Processor
CPU Family: 0x17
def _parse_degrees(nmea_data):
# Parse a NMEA lat/long data pair 'dddmm.mmmm' into a pure degrees value.
# Where ddd is the degrees, mm.mmmm is the minutes.
if nmea_data is None or len(nmea_data) < 3:
return None
raw_integer_part, raw_fractional_part = nmea_data.split(".")
integer_part = int(raw_integer_part)
fractional_part = int(raw_fractional_part)
# Convert the two parts in to an integer that is shifted left 6 decimals
# This gives us the value to 6 decimal places as an integer
@reportingsjr
reportingsjr / gps.py
Created November 4, 2018 01:27
circuitpython gps truncation
import board
import busio
import adafruit_gps
import time
uart = busio.UART(board.TX, board.RX)
gps = adafruit_gps.GPS(uart)
# Turn on the basic GGA and RMC info (what you typically want)
gps.send_command(b'PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0')
use std::io::prelude::*;
use std::net::{TcpStream, Shutdown};
extern crate byteorder;
use byteorder::{BigEndian, WriteBytesExt, ReadBytesExt};
#[macro_use]
extern crate bitflags;
@reportingsjr
reportingsjr / main.rs
Created April 15, 2017 16:23
Rust TcpStream issues
use std::io::prelude::*;
use std::net::{TcpStream, Shutdown};
extern crate byteorder;
use byteorder::{BigEndian, WriteBytesExt, ReadBytesExt};
#[macro_use]
extern crate bitflags;
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<project>
<actions/>
<description>
This job is running the checklib.py magic from <a href="https://github.com/KiCad/kicad-library-utils">https://github.com/KiCad/kicad-library-utils</a>.
<br>
Checklib.py is a script that checks compliance of symbols in relation to the KiCad Library Convention (KLC).
</description>
<keepDependencies>false</keepDependencies>
<properties>
SodaTemp plugin
import supybot.utils as utils
from supybot.commands import *
import supybot.plugins as plugins
import supybot.ircutils as ircutils
import supybot.callbacks as callbacks
import feedparser
try:
from supybot.i18n import PluginInternationalization
_ = PluginInternationalization('SodaTemp')
@reportingsjr
reportingsjr / drcZoom.patch
Created June 17, 2015 22:20
kicad drc zoom patch
diff --git a/pcbnew/dialogs/dialog_drc.cpp b/pcbnew/dialogs/dialog_drc.cpp
index 4eafff3..30fab4b 100644
--- a/pcbnew/dialogs/dialog_drc.cpp
+++ b/pcbnew/dialogs/dialog_drc.cpp
@@ -32,12 +32,15 @@
#include <wxPcbStruct.h>
#include <base_units.h>
#include <class_board_design_settings.h>
-
+#include <class_draw_panel_gal.h>
#include "ch.h"
#include "hal.h"
#include "test.h"
static void spicb(SPIDriver *spip);
static const SPIConfig spicfg = {
spicb,
GPIOA,
GPIOA_SPI1NSS,