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
| /db | |
| /plugins | |
| /uploads | |
| /logs |
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
| // requires the experimental v3 of transformersJS: | |
| // npm install xenova/transformers.js#v3 | |
| import { FeatureExtractionPipeline, pipeline } from "@xenova/transformers"; | |
| export interface Entry<T> { | |
| str: string; | |
| metadata: T; | |
| } | |
| export interface VectorizedEntry<T> extends Entry<T> { |
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
| /*------------------------ | |
| Libraries | |
| ------------------------*/ | |
| const axios = require("axios"); | |
| const fs = require("fs"); | |
| const FormData = require("form-data"); | |
| /*------------------------ | |
| Download the file. | |
| Good article on how to download a file and send with form data - https://maximorlov.com/send-a-file-with-axios-in-nodejs/ |
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
| # ##### BEGIN GPL LICENSE BLOCK ##### | |
| # | |
| # This program is free software; you can redistribute it and/or | |
| # modify it under the terms of the GNU General Public License | |
| # as published by the Free Software Foundation; either version 2 | |
| # of the License, or (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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 asyncio | |
| import websockets | |
| async def echo(websocket): | |
| async for message in websocket: | |
| await websocket.send(message) | |
| async def main(): | |
| async with websockets.serve(echo, "localhost", 8173): | |
| await asyncio.Future() # run forever |
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
| const float MY_PI = 3.14159265; | |
| const float MY_SCALE = 1.0; | |
| const mat3 m = mat3( | |
| cos(MY_PI * MY_SCALE), -sin(MY_PI * MY_SCALE), 0.0, | |
| sin(MY_PI * MY_SCALE), cos(MY_PI * MY_SCALE), 0.0, | |
| 0.0, 0.0, 1.0 | |
| ); | |
| float noise( in vec3 p ) { | |
| return cos(p.x) * sin(p.y) * cos(p.z); |
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
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS 3D Physics</title> | |
| <style> | |
| body { margin: 0; } | |
| </style> | |
| </head> | |
| <body> | |
| <script src="js/three.js"></script> |
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 { OrbitControls } from "@react-three/drei"; | |
| import { Canvas } from "@react-three/fiber"; | |
| import { Bloomer } from "../vfx-library/Bloomer"; | |
| import { ENLogicGraphAutoLoad } from "../vfx-runtime/ENLogicGraph"; | |
| export default function TryMe() { | |
| let REPLACE_ME = `-MvpfxG3QZ37safQAPJS`; | |
| return ( | |
| <Canvas dpr={3}> | |
| {/* content-sphere */} |
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
| { | |
| "rules": { | |
| ".read": true, | |
| ".write": false, | |
| // | |
| // | |
| "profile": { | |
| "$owner_user_id": { | |
| ".read": "true", |
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
| <AppMiniAPI> | |
| {({ api }) => { | |
| return ( | |
| <Starter reducedDPI={2}> | |
| <GLMiniAPI api={api}> | |
| {({ gpi }) => { | |
| return ( | |
| <LinkGLToDOMAPI | |
| init={() => { | |
| api.now.renderMode = "pixel"; // pixel, mesh, none |
NewerOlder