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
class Node(object): | |
""" | |
one of the nodes in a markov chain. | |
use decimal value for all chances. | |
""" | |
def __init__(self, baseChance, stackIncrease, cap, dura): | |
self.baseChance = baseChance | |
self.chance = baseChance | |
self.stackIncrease = stackIncrease | |
self.cap = cap |
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 matplotlib.pyplot as plt | |
import math | |
def SmoothUpdate(objPos, objVel, finPos, deltaTime, dampingRatio, angularFrequency): | |
""" | |
This function is a derivative of work done by: | |
Copyright (c) 2008-2012 Ryan Juckett | |
http://www.ryanjuckett.com/ |
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 os, shutil, re, time | |
# Use local scripts within the node_modules folder | |
BASE_DIRECTORY = 'node_modules/three/examples' | |
# 'node_modules/three/examples' is the first target | |
# 'node_modules/three/src' is the second target | |
OUTPUT_DIRECTORY = 'three/examples/' | |
# delete contents of output folder and debugging files | |
CLEAN_OUTPUT_DIR = 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
{ | |
"notusedinexamples": [ | |
"node_modules/three/src/animation/AnimationAction.js", | |
"node_modules/three/src/animation/AnimationObjectGroup.js", | |
"node_modules/three/src/animation/KeyframeTrack.js", | |
"node_modules/three/src/animation/PropertyMixer.js", | |
"node_modules/three/src/animation/tracks/StringKeyframeTrack.js", | |
"node_modules/three/src/audio/AudioAnalyser.js", | |
"node_modules/three/src/audio/AudioContext.js", | |
"node_modules/three/src/audio/AudioListener.js", |
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
/** | |
* @author mrdoob / http://mrdoob.com/ | |
*/ | |
var GridHelper = /*@__PURE__*/(function (LineSegments) { | |
function GridHelper ( size, divisions, color1, color2 ) { | |
size = size || 10; | |
divisions = divisions || 10; | |
color1 = new Color( color1 !== undefined ? color1 : 0x444444 ); |
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
alkjsdbflkajsdf |
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 { createEventDispatcher, onDestroy } from 'svelte'; | |
import { Euler, Camera } from 'three'; | |
import { | |
useThrelte, | |
useParent | |
} from '@threlte/core'; | |
// Set to constrain the pitch of the camera | |
// Range is 0 to Math.PI radians | |
export let minPolarAngle = 0; // radians |
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
function uint8ArrayToHex(uint8Array) { | |
return Array.from(uint8Array) | |
.map((byte) => byte.toString(16).padStart(2, "0")) | |
.join(""); | |
} | |
function extractFlagAndPID(inputArray) { | |
const first3Bits = inputArray[0] & 0b111; | |
const next13Bits = ((inputArray[0] & 0b11111000) << 8) | inputArray[1]; |
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
function uint8ArrayToHex(uint8Array) { | |
return Array.from(uint8Array) | |
.map((byte) => byte.toString(16).padStart(2, "0")) | |
.join(""); | |
} | |
function extractFlagAndPID(inputArray) { | |
const first3Bits = inputArray[0] & 0b111; | |
const next13Bits = ((inputArray[0] & 0b00011111) << 8) | inputArray[1]; |
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
function uint8ArrayToHex(uint8Array) { | |
return Array.from(uint8Array) | |
.map((byte) => byte.toString(16).padStart(2, "0")) | |
.join(""); | |
} | |
function extractFlagAndPID(inputArray) { | |
const first3Bits = inputArray[0] & 0b111; | |
const next13Bits = ((inputArray[0] & 0b00011111) << 8) | inputArray[1]; |
OlderNewer