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 * as THREE from 'three' | |
export function createGeometry() { | |
const geometry = new THREE.BoxBufferGeometry(0.8, 0.8, 0.8, 4, 4, 4) | |
// create an empty array to hold targets for the attribute we want to morph | |
// morphing positions and normals is supported | |
geometry.morphAttributes.position = [] | |
// the original positions of the cube's vertices |
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 { AnyComponent, FunctionalComponent, RenderableProps } from 'preact' | |
export { useState, useRef, useEffect } from 'preact/hooks' | |
export { | |
Attributes, | |
FunctionalComponent as SFC, | |
AnyComponent as ComponentType, | |
FunctionalComponent as FunctionComponent, | |
AnyComponent as JSXElementConstructor, |
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
module.exports = { | |
presets: [ | |
[ | |
'next/babel', | |
{ | |
'styled-jsx': { | |
plugins: [ | |
[ | |
'styled-jsx-plugin-postcss', | |
{ |
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 withApollo from 'next-with-apollo' | |
import ApolloClient, { InMemoryCache, HttpLink } from 'apollo-boost' | |
import { parseCookies } from 'nookies' | |
export default withApollo( | |
({ initialState }) => | |
new ApolloClient({ | |
link: new HttpLink({ | |
uri: 'https://api.komfy.now.sh/graphql', | |
headers: { |
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
package main | |
import ( | |
"os" | |
"time" | |
"log" | |
// excel "github.com/360EntSecGroup-Skylar/excelize" | |
env "github.com/joho/godotenv" | |
tb "gopkg.in/tucnak/telebot.v2" | |
) |
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 { Link } from '@reach/router' | |
import { useState, useEffect } from 'react' | |
import html from './html' | |
const Editor = () => { | |
const [title, setTitle] = useState('') | |
const [slug, setSlug] = useState('') | |
const [story, setStory] = useState('') | |
const [reply, setReply] = useState('') |
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
mtllib figure.mtl | |
o Sphere | |
v 13.032698 6.743820 6.617107 | |
v 13.285507 6.805155 6.530835 | |
v 13.300390 6.877423 6.432388 | |
v 13.298800 6.908429 6.348693 | |
v 13.320424 6.995495 6.306604 | |
v 13.447849 7.161360 6.300313 | |
v 13.467219 7.241513 6.211162 | |
v 13.515799 7.192785 6.031226 |
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 ts from 'rollup-plugin-typescript2' | |
import babel from 'rollup-plugin-babel' | |
import resolve from 'rollup-plugin-node-resolve' | |
import graphql from 'rollup-plugin-graphql' | |
import postcss from 'rollup-plugin-postcss-modules' | |
import workbox from 'rollup-plugin-workbox-build' | |
import cjs from 'rollup-plugin-commonjs' | |
export default { | |
input: './App.tsx', |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Welcome file</title> | |
<link rel="stylesheet" href="https://stackedit.io/style.css" /> | |
</head> |