Skip to content

Instantly share code, notes, and snippets.

View unicomp21's full-sized avatar

John Davis unicomp21

View GitHub Profile
@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active July 25, 2024 07:43
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
@cobookman
cobookman / index.html
Created August 3, 2017 01:31
Speech Streaming with Python & GRPC
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h2>Transcript</h2>
<div id="transcript"><?div>
<script>
var app = {
@surma
surma / README.md
Last active March 8, 2024 12:06
webpack-emscripten-wasm

Minimal example making webpack and wasm/Emscripten work together.

Build instructions:

  • Clone this gist
  • npm install
  • npm start
  • Open http://localhost:8080
  • Look at console
@MattPD
MattPD / cpp.std.coroutines.draft.md
Last active July 18, 2024 08:19
C++ links: Coroutines (WIP draft)
@danieldietrich
danieldietrich / README.md
Last active February 14, 2024 13:15
The easiest way to bundle a simple TypeScript web application

THIS README IS OUTDATED AND UNMAINTAINED - PLEASE DON'T RELY ON THIS

The easiest way to bundle a simple TypeScript web application

Packaging JavaScript applications can be a bit overwhelming. The popular project uglifyjs does not support ES6, it is cumbersome to configure the allmighty Webpack, bundlers like Parcel and Microbundle still have bugs or do not compile to ESM bundles that work in a browser. It is hard to figure out the best way to bundle an application.

Here I give a small example, how we achieve the goal using the

@SteveSandersonMS
SteveSandersonMS / Index.razor
Created February 20, 2020 14:24
Blazor WebAssembly use of ClientWebSocket
@page "/"
@using System.Net.WebSockets
@using System.Text
@using System.Threading
@implements IDisposable
<h1>Echo test</h1>
<h3>State: @webSocket.State</h3>
@if (webSocket.State == WebSocketState.Open)
@Qix-
Qix- / coro.cpp
Created September 29, 2020 04:16
C++20 coroutines + LibUV sample, v2
// Thank you to the folks at the C++ slack channel,
// along with @lewissbaker for the excellent literature
// (even though it took me a few days to be convinced
// it really was so).
#include <uv.h>
#include <iostream>
#include <experimental/coroutine>
@raj454raj
raj454raj / redis-streams.md
Last active September 2, 2021 09:35
Redis streams cheatsheet
Commands Description
XADD mystream * message 1 Add to stream to insert {message: 1}
XLEN mystream Length of messages in mystream
XRANGE mystream - + COUNT 2 Return the first two elements
XREAD COUNT 2 STREAMS mystream 0 Read 2 elements in stream from the beginning
XREAD BLOCK 0 STREAMS mystream $ Wait indefinitely until a message
XREAD BLOCK 1000 STREAMS mystream $ Wait for 1 second for a message else timeout
XGROUP CREATE mystream group1 $ Create a group1 in consumer group in a stream
XREADGROUP GROUP group1 cons1 COUNT 1 STREAMS mystream > Consume new messages as cons1 in group1 and get all the new messages