Skip to content

Instantly share code, notes, and snippets.

View CobyPear's full-sized avatar
🪴

Coby Sher CobyPear

🪴
View GitHub Profile
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"version": 2,
"console_title_template": "{{ .Folder }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
@CobyPear
CobyPear / THREE.svelte
Created August 20, 2022 22:15
three.js + svelte basic setup
<script>
import * as THREE from 'three';
import { onMount } from 'svelte';
import { onDestroy } from 'svelte';
import { browser } from '$app/env';
let windowWidth, windowHeight, canvas, renderer, animate;
onMount(() => {
// create the scene and camera
const scene = new THREE.Scene();