// reducer: scheduleReminder
// table: person
// view: my_player
// lifecycle: init
export const init = spacetimedb.init(_ctx => {
console.log("====::: INIT SPACETIMEDB :::====");
});
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // transform 3d hierarchy matrix4 | |
| import * as THREE from 'three'; | |
| import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; | |
| // import { TransformControls } from 'three/addons/controls/TransformControls.js'; | |
| import { ViewportGizmo } from "three-viewport-gizmo"; | |
| import van from "vanjs-core"; | |
| import { Pane } from 'https://cdn.jsdelivr.net/npm/tweakpane@4.0.5/dist/tweakpane.min.js'; | |
| import { label } from 'three/tsl'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as THREE from 'three'; | |
| import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; | |
| // import { TransformControls } from 'three/addons/controls/TransformControls.js'; | |
| import { ViewportGizmo } from "three-viewport-gizmo"; | |
| import van from "vanjs-core"; | |
| import { Pane } from 'https://cdn.jsdelivr.net/npm/tweakpane@4.0.5/dist/tweakpane.min.js'; | |
| import { label } from 'three/tsl'; | |
| function degreeToRadians(degrees) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // sqlite wasm | |
| // <script type="importmap"> | |
| // { | |
| // "imports":{ | |
| // "three":"https://cdn.jsdelivr.net/npm/three@0.183.2/+esm" | |
| // } | |
| // } | |
| // </script> | |
| import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.183.2/+esm'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // sqlite wasm | |
| // <script type="importmap"> | |
| // { | |
| // "imports":{ | |
| // "three":"https://cdn.jsdelivr.net/npm/three@0.183.2/+esm" | |
| // } | |
| // } | |
| // </script> | |
| import * as THREE from 'https://cdn.jsdelivr.net/npm/three@0.183.2/+esm'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {System, Type, World} from 'https://esm.run/@lastolivegames/becsy'; | |
| // import * as THREE from 'https://esm.run/three'; | |
| import van from "vanjs-core"; | |
| class ConfigComponent { | |
| static schema = { | |
| gameSpeed: {type:Type.float32, default: 60}, | |
| isPaused: {type:Type.boolean, default: false}, | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // =============================================== | |
| // TINY GPT FROM SCRATCH IN PURE JAVASCRIPT | |
| // ~250 lines | No dependencies | Runs in Node.js & Browser | |
| // Educational version with deep comments | |
| // =============================================== | |
| class TinyLLM { | |
| constructor(config = {}) { | |
| // Hyperparameters — feel free to tweak | |
| this.vocabSize = config.vocabSize || 65; // How many tokens exist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /********************************************************************* | |
| * raylib 5.5 + raygui – Hex-Bar Progress Bar (100% fill) | |
| * gcc raylib_hex01.c -o hexbar -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 | |
| *********************************************************************/ | |
| #define RAYGUI_IMPLEMENTATION | |
| #include "raylib.h" | |
| #include "raymath.h" | |
| #include "raygui.h" | |
| #include <stdio.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define RAYLIB_IMPLEMENTATION // <-- tells raylib to include its source once | |
| #include <raylib.h> | |
| #include <Jolt/Jolt.h> | |
| #include <Jolt/RegisterTypes.h> | |
| #include <Jolt/Core/Factory.h> | |
| #include "Jolt/Physics/PhysicsSettings.h" | |
| #include <Jolt/Core/JobSystemThreadPool.h> | |
| #include <Jolt/Physics/PhysicsSystem.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "raylib.h" | |
| #include <ode/ode.h> | |
| #include <stdio.h> | |
| #include <math.h> // Ensure math.h is included for PI | |
| // Global ODE variables | |
| dWorldID world; | |
| dSpaceID space; | |
| dJointGroupID contactgroup; | |
| dGeomID floorGeom, cube1Geom, cube2Geom; |
NewerOlder