Skip to content

Instantly share code, notes, and snippets.

View jph6366's full-sized avatar
📺
thats my tv

Jackson Hardee jph6366

📺
thats my tv
  • Wilmington, NC
  • 08:02 (UTC -04:00)
View GitHub Profile
@jph6366
jph6366 / GeoPackage.jl
Last active July 31, 2025 20:53
GeoPackage Reader
# --------------------------
# GeoPackage Features and Attributes Reader
# --------------------------
# the table of attributes are stored in the database into a Tables.jl table-compatible sink
# the geometries (with CRS information) into a vector of geometries geoms from Meshes.jl
# followed by a geotable = georef(table, geoms) call to combine these two objects into a GeoTable
# Requirement 1: first 16 bytes is null-terminated ASCII string "SQLite format 3"
const MAGIC_HEADER_STRING::Vector{UInt8} = UInt8[
0x53, 0x51, 0x4c, 0x69, 0x74, 0x65, 0x20, 0x66,
@jph6366
jph6366 / OdinWebAssemblyBasic.md
Last active March 10, 2025 20:28 — forked from sortofsleepy/OdinWebAssemblyBasic.md
Odin language simple WebAsembly setup

Have some free time on my hands so I thought I'd try out Odin, an interesting language I came across a few weeks ago. I haven't dived too far into it but so far from what I understand, it's another language in a similar vain of Rust and Zig(both also very good)

Since as far as I can tell, though Odin does support WebAssembly, how specifically to build for it is not well documented so I thought I should post a very basic setup for WebAssembly.

All the Odin app does is

  • export a function that called setup that calls an imported JS function getWindowWidth
  • In the JS, it calls setup and logs the result.

When building the Odin code, the command is roughly odin build -target="js_wasm32" -out=""

@jph6366
jph6366 / cesium-viewer-no-token.html
Created February 23, 2025 16:50 — forked from banesullivan/cesium-viewer-no-token.html
Create a Cesium Viewer without Cesium Ion Token and still have a decent selection base maps. For some reason, I could not find a clear explanation of how to do this in the Cesium docs or Discourse.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- Include the CesiumJS JavaScript and CSS files -->
<script src="https://cesium.com/downloads/cesiumjs/releases/1.87.1/Build/Cesium/Cesium.js"></script>
<link href="https://cesium.com/downloads/cesiumjs/releases/1.87.1/Build/Cesium/Widgets/widgets.css" rel="stylesheet">
</head>
@jph6366
jph6366 / Dockerfile
Created December 5, 2024 15:49
PDAL MBIO Plugin MBSystem#1354
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1
ARG MBSYS_VERSION=5.7.5
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y \
python3-pip \