Skip to content

Instantly share code, notes, and snippets.

View Dygear's full-sized avatar
🚀
Ready to Go!

Mark Tomlin Dygear

🚀
Ready to Go!
View GitHub Profile
@Dygear
Dygear / Working.html
Last active March 6, 2024 21:35
Google Maps JavaScript API getBounds on Polygon.
<!DOCTYPE html>
<main class="container">
<div class="row" id="map" style="height: 600px"></div>
</main>
<script src="https://maps.googleapis.com/maps/api/js?key=<!--YOURKEYHERE-->&libraries=drawing"></script>
<script>
var map, drawingManager;
function initialize() {
map = new google.maps.Map(document.getElementById('map'), {
@Dygear
Dygear / code.py
Last active November 6, 2023 00:13
Adafruit JP’s Product Pick of the Week 12/7/21 Macropad RP2040 Starter Kit @adafruit @johnedgarpark #adafruit
import time
import board
import busio
from digitalio import DigitalInOut, Direction, Pull
import keypad
import displayio
import terminalio
import neopixel
import rotaryio
from adafruit_display_text import label
@Dygear
Dygear / STI.log
Created October 30, 2023 02:06
MacOS Crash Report
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: infinite [50446]
Path: /Users/USER/Library/Application Support/Steam/*/infinite.app/Contents/MacOS/infinite
Identifier: infinite
Version: ???
Code Type: X86-64 (Translated)
Parent Process: launchd [1]
@Dygear
Dygear / Info
Last active February 12, 2023 03:22
Crossover Stackoverflow
Macbook Pro 16-Inch 2023
Chip: Apple M2 Max
Memory: 32GB
macOS Ventura 13.2
Line: 21853:
```
-> rc=9 (took 544.808114051819 seconds)
setup:error: 'rundll32 win7Install crossover.inf' failed
setup:error: 'rundll32 win7Install crossover.inf' failed
@Dygear
Dygear / qFlipper 1.1.3 - 0.64.3
Last active September 2, 2022 07:15
qflipper update logs
262 [APP] qFlipper version 1.1.3 commit f9bd612e 2022-08-17T10:23:02
262 [APP] OS info: Pop!_OS 22.04 LTS 22.04 5.19.0-76051900-generic
285 [REG] Detected new device: VID_0x483:PID_0xdf11
536 [DBG] Device reported transfer size: 1024
538 [DBG] Bytes uploaded: 32 100%
538 [DBG] Upload has finished.
540 [REG] Registering the device
540 [BKD] Current device changed to "Otu"
559 [UPD] Fetched update information from https://update.flipperzero.one/qFlipper/directory.json
559 [UPD] Fetched update information from https://update.flipperzero.one/firmware/directory.json
@Dygear
Dygear / example.rs
Created July 30, 2022 07:03
Primatives taking a slice would be cool.
/**
* # Motion Packet
* The motion packet gives physics data for all the cars being driven. There is additional data for the car being driven with the goal of being able to drive a motion platform setup.
* N.B. For the normalised vectors below, to convert to float values divide by 32767.0f – 16-bit signed values are used to pack the data and on the assumption that direction values are always between -1.0f and 1.0f.
* Frequency: Rate as specified in menus
* Size: 1464 bytes
* Version: 1
*/
#[derive(Debug, Clone, Copy)]
pub struct CarMotion
@Dygear
Dygear / google_login.php
Last active July 18, 2022 12:01
Google OAuth Login Flow
<?php
if (isset($_GET['logout']))
{
session_unset();
header('Location: /');
return;
}
define('client_id', 'CLIENT_ID');
define('redirect_uri', 'THIS_FILES_URL_ON_INTERNET');
@Dygear
Dygear / ESAR.c
Last active July 9, 2022 00:07 — forked from cygeus/ESAR.c
ESAR - Extraordinarily Simple AIS Receiver
/*
* source: https://www.rtl-sdr.com/esar-extraordinarily-simple-ais-receiver-written-in-c/
* code originally written for MS Visual Studio by Richard Gosiorovsky,
* but slightly adapted to compile using clang on Linux.
*
* compile:
* $ gcc -Wall -Werror -o ESAR ESAR.c
*
* run:
* $ rtl_tcp -f 162e6 -s 300000 -a 127.0.0.1 -p 2345 -g 48.0
@Dygear
Dygear / Audio.php
Last active May 16, 2022 00:16
MimoSDR Upload Files
<?php
namespace MimoSDR;
use \DateTimeZone;
use \TTG\DateTime;
use \TTG\Files;
class Audio
{
const SQL_CREATE =<<<SQL
CREATE TABLE sdr_sites (
@Dygear
Dygear / failed.txt
Last active January 15, 2022 21:58
Deno ARM64 build (Raspberry Pi OS 64Bit)
pi@deno:~ $ git clone --recurse-submodules https://github.com/denoland/deno.git
Cloning into 'deno'...
remote: Enumerating objects: 41525, done.
remote: Total 41525 (delta 0), reused 0 (delta 0), pack-reused 41525
Receiving objects: 100% (41525/41525), 22.54 MiB | 12.15 MiB/s, done.
Resolving deltas: 100% (31368/31368), done.
Submodule 'std/wasi/testdata' (https://github.com/khronosproject/wasi-test-suite.git) registered for path 'std/wasi/testdata'
Submodule 'deno_third_party' (https://github.com/denoland/deno_third_party.git) registered for path 'third_party'
Cloning into '/home/pi/deno/std/wasi/testdata'...
remote: Enumerating objects: 251, done.