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
<script src="http://www.threejs.org/build/three.min.js"></script> | |
<script src="http://www.threejs.org/examples/js/renderers/Projector.js"></script> | |
<script src="http://www.threejs.org/examples/js/renderers/CanvasRenderer.js"></script> | |
<script> | |
var mouseX = 0, mouseY = 0, | |
windowHalfX = window.innerWidth / 2, | |
windowHalfY = window.innerHeight / 2, |
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
function observe(object, onChange) { | |
function buildProxy(prefix, object) { | |
return new Proxy(object, { | |
set(target, property, value) { | |
// calling original set property value | |
target[property] = value; | |
// log the change | |
// @ts-ignore | |
console.log(`Property ${prefix}${property} has changed to: `, value); |
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
function clamp(value, min, max) { | |
return Math.min(Math.max(value, min), max); | |
} |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
node_modules/ |
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
{ | |
"Profiles": [ | |
{ | |
"Ansi 6 Color" : { | |
"Red Component" : 0.33725491166114807, | |
"Color Space" : "Calibrated", | |
"Blue Component" : 0.7607843279838562, | |
"Alpha Component" : 1, | |
"Green Component" : 0.7137255072593689 | |
}, |
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
autoconf | |
autojump | |
automake | |
bat | |
elixir | |
erlang | |
gdbm | |
grpcurl | |
ios-webkit-debug-proxy | |
jpeg |
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 * as React from "react"; | |
import { PropertyControls, ControlType, Override } from "framer"; | |
import { data } from "./Examples"; | |
const style: React.CSSProperties = { | |
height: "100%", | |
display: "flex", | |
alignItems: "center", | |
justifyContent: "center", | |
textAlign: "center", | |
color: "#8855FF", |
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 { createStore, combineReducers, applyMiddleware, compose } from 'redux'; | |
import thunk from 'redux-thunk'; | |
import { request } from './utils/utils'; | |
import accountlist from './containers/AccountList/reducer'; | |
import withdraworder from './containers/WithdrawOrder/reducer'; | |
const userInitialState = { | |
} |
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
const x = async (y) => { | |
return 1 | |
} | |
type Unpacked<T> = | |
T extends Promise<infer U> ? U : | |
T; | |
export type T = Unpacked<ReturnType<typeof x>> // number |
NewerOlder