This file contains 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 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 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 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 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 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 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 |
This file contains 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 { useFBX, useGLTF, OrbitControls as DOrbit } from "@react-three/drei"; | |
import { useFrame, useLoader, useThree } from "@react-three/fiber"; | |
import { Suspense, useEffect, useRef } from "react"; | |
import { | |
AnimationMixer, | |
FileLoader, | |
NumberKeyframeTrack, | |
AnimationClip, | |
NormalAnimationBlendMode, | |
Audio, |
This file contains 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
export const videoStuff = { | |
day1: { | |
lounge: { | |
screen1: | |
"https://res.cloudinary.com/loklok-keystone/video/upload/v1637548204/capitalcode-artbasel-2021/day1/screen1-day-1.mp4", | |
screen2: | |
"https://res.cloudinary.com/loklok-keystone/video/upload/v1637548203/capitalcode-artbasel-2021/day1/screen2-day-1.mp4", | |
screen3: | |
"https://res.cloudinary.com/loklok-keystone/video/upload/v1637548203/capitalcode-artbasel-2021/day1/screen3-day-1.mp4", | |
screen4: |
This file contains 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
{ | |
"day": 1, | |
"data": "abc", | |
"link":"http://google.com" | |
} |
NewerOlder