Skip to content

Instantly share code, notes, and snippets.

View radik909's full-sized avatar

Dineshkumar Raman radik909

View GitHub Profile
@lamarmarshall
lamarmarshall / App.js
Created January 19, 2022 06:03
react, react three fiber, background, load 360 image
import logo from './logo.svg';
import './App.css';
import { Canvas, useFrame, useThree, extend, useLoader } from 'react-three-fiber'
import { Line, Text, useTexture } from '@react-three/drei';
import * as THREE from 'three'
import { useRef, Suspense } from 'react'
import {OrbitControls} from 'three/examples/jsm/controls/OrbitControls'
extend({OrbitControls})
// react, react three fiber, background, load 360 image
const deg2rad = degrees => degrees * (Math.PI / 180);
@vysakh0
vysakh0 / hydra.ex
Last active February 19, 2016 14:04
The Process that retries itself without monitor, supervisors.
defmodule Hydra do
use GenServer
def run(data) do
{:ok, pid} = GenServer.start(__MODULE__, data, [])
GenServer.cast(pid, :process)
end
def init(data) do
{:ok, data}