Skip to content

Instantly share code, notes, and snippets.

View JeffersGlass's full-sized avatar

Jeff Glass JeffersGlass

View GitHub Profile
@JeffersGlass
JeffersGlass / a.stats
Created February 12, 2024 21:57
Stats testing for uop pair counts
uop[_LOAD_NAME].pair_count[_CHECK_VALIDITY] : 1966
uop[_STORE_NAME].pair_count[_SET_IP] : 983
uop[_STORE_NAME].pair_count[_CHECK_VALIDITY] : 983
uop[_SET_IP].pair_count[_LOAD_NAME] : 1966
uop[_SET_IP].pair_count[_STORE_NAME] : 983
uop[_SET_IP].pair_count[_BINARY_OP_ADD_INT] : 983
uop[_SET_IP].pair_count[_ITER_NEXT_RANGE] : 983
uop[_SET_IP].pair_count[_JUMP_TO_TOP] : 983
uop[_GUARD_BOTH_INT].pair_count[_CHECK_VALIDITY] : 983
uop[_BINARY_OP_ADD_INT].pair_count[_GUARD_BOTH_INT] : 983
@JeffersGlass
JeffersGlass / index.html
Created January 24, 2024 19:25
Spurious HTML output when py-editors appear multiple time
<html><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>PyScript Test</title>
<link rel="stylesheet" href="https://pyscript.net/releases/2024.1.1/core.css">
<script type="module" src="https://pyscript.net/releases/2024.1.1/core.js"></script>
<!-- Code injected by live-server -->
<script>
// <![CDATA[ <-- For SVG support
if ('WebSocket' in window) {
@JeffersGlass
JeffersGlass / runPythonAsyncDemo.html
Created October 21, 2022 16:59
A demonstration that Pyodide.runPythonAsync() still runs synchronous code synchronously
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="icon" type="image/png" href="favicon.png" />
<link rel="stylesheet" href="https://pyscript.net/releases/2022.09.1/pyscript.css" />
<script defer src="https://pyscript.net/releases/2022.09.1/pyscript.js"></script>
</head>
/* Sweep
by BARRAGAN <http://barraganstudio.com>
This example code is in the public domain.
modified 8 Nov 2013
by Scott Fitzgerald
http://www.arduino.cc/en/Tutorial/Sweep
*/
#include <Servo.h>