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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| # ----------------------------------------------- | |
| # Usage: | |
| # ./prune-old.sh # prune only resources older than today (i.e. created before 00:00 of current date) | |
| # ./prune-old.sh -a|--all # prune everything, regardless of age | |
| # ----------------------------------------------- | |
| FULL_PRUNE=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
| import React, { useState, useRef, useEffect, useCallback } from 'react'; | |
| import * as THREE from 'three'; | |
| // OrbitControls implementation | |
| class OrbitControls { | |
| constructor(camera, domElement) { | |
| this.camera = camera; | |
| this.domElement = domElement; | |
| this.target = new THREE.Vector3(); | |
| this.enableDamping = true; |
OlderNewer