Skip to content

Instantly share code, notes, and snippets.

javascript:(function()%7Bs%3Ddocument.createElement('script')%3B%0As.setAttribute('type'%2C 'module')%3B%0As.innerHTML %3D %60import %7BGLTFExporter%7D from 'https%3A%2F%2Frawcdn.githack.com%2Fmrdoob%2Fthree.js%2Fcf04fca253477f40e04488229cfcaf0f280e448b%2Fexamples%2Fjsm%2Fexporters%2FGLTFExporter.js'%3B%0Aif (!window.mesh.parent) %7B%0A alert('No window.mesh.parent')%3B%0A%7D else %7B%0A const exporter %3D new GLTFExporter()%3B%0A const scene %3D window.mesh.parent%3B%0A exporter.parse( scene%2C function ( gltf ) %7B%0A const blob %3D new Blob( %5B gltf %5D%2C %7B type%3A 'application%2Foctet-stream' %7D )%3B%0A const link %3D document.createElement( 'a' )%3B%0A link.style.display %3D 'none'%3B%0A document.body.appendChild( link )%3B%0A link.href %3D URL.createObjectURL( blob )%3B%0A link.download %3D 'scene.glb'%3B%0A link.click()%3B%0A %7D%2C %7B%0A binary%3A true%0A %7D )%3B%0A%7D%0A%60%3B%0Adocument.body.appendChild(s)%3B%7D)()%3B
@chrislatorres
chrislatorres / nftlist.txt
Created November 27, 2020 07:57
List of NFT projects
- decentraland
- cryptovoxels
- Somnium Space
- The Sandbox
- SUPERRARE
- SORARE
- Async Art
- Cryptokitties
- Cryptopunks
- Makersplace
{
"name": "fcc-learn-npm-package-json",
"dependencies": {
"express": "^4.14.0",
"moment": "2.14.0"
},
"main": "server.js",
"scripts": {
"start": "node server.js"
},
{
"sites": [
{
"label": "Soundboxing Beta",
"description": "A VR music kickboxing game with beats created by people. If you feel the urge to dance, you're doing it right!",
"url": "https://webvr.soundboxing.co/",
"icon": "https://supermedium.com/superassets/site/soundboxing.jpg"
},
{
"label": "Jelly Face",
{
"sites": [
{
"label": "Soundboxing Beta",
"description": "A VR music kickboxing game with beats created by people. If you feel the urge to dance, you're doing it right!",
"url": "https://webvr.soundboxing.co/",
"icon": "https://supermedium.com/superassets/site/soundboxing.png"
},
{
"label": "Jelly Face",
{
"sites": [
{
"url": "https://webvr.soundboxing.co/",
"label": "Soundboxing Beta",
"icon": "https://supermedium.com/superassets/site/soundboxing.png"
}, {
"url": "https://joshshadik.github.io/jelly-face/",
"label": "Jelly Face",
"icon": "https://supermedium.com/superassets/site/jellyface.png"
@chrislatorres
chrislatorres / git_rebase.md
Created September 5, 2019 00:01 — forked from ravibhure/git_rebase.md
Git rebase from remote fork repo

In your local clone of your forked repository, you can add the original GitHub repository as a "remote". ("Remotes" are like nicknames for the URLs of repositories - origin is one, for example.) Then you can fetch all the branches from that upstream repository, and rebase your work to continue working on the upstream version. In terms of commands that might look like:

Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

Fetch all the branches of that remote into remote-tracking branches, such as upstream/master:

git fetch upstream

/**
* @author arodic / https://github.com/arodic
*/
THREE.TransformControls = function ( camera, domElement ) {
THREE.Object3D.call( this );
domElement = ( domElement !== undefined ) ? domElement : document;
BJS - [23:45:59]: Babylon.js null engine (v3.3.0) launched
Error generating richtext
TypeError: Cannot read property 'clone' of undefined
at window.getComputedStyle (C:\Users\chris\github\exokit\src\Window.js:632:3
0)
at t (https://js.cryptovoxels.com/client.js:60257:189)
at module.exports (https://js.cryptovoxels.com/client.js:60259:4)
at Richtext.generate (https://js.cryptovoxels.com/client.js:60153:2005)
at Parcel.createFeature (https://js.cryptovoxels.com/client.js:60180:2985)
at https://js.cryptovoxels.com/client.js:60180:3436

wine setup

After installing the PackageManager via wine edit the file $HOME/.wine/drive_c/users/$(whoami)/MagicLeap/PackageManager/package-manager.ini using your favorite text editor and add the following arguments.

-Dprism.order=j2d
-Dsun.java2d.d3d=false

Now you should be able to start the PackageManager and bypass the blank black screen.