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
  • 11:22 (UTC -04:00)
View GitHub Profile
@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>