Skip to content

Instantly share code, notes, and snippets.

View chrismatthieu's full-sized avatar
🚀
Hacking the metaverse!

Chris Matthieu chrismatthieu

🚀
Hacking the metaverse!
View GitHub Profile
{
"assets": [
{ "id": "cityModel", "src": "https://xrpanet.s3.us-west-1.amazonaws.com/scaniverse2.glb"}
],
"entities": [
{ "id":"city", "gltf-model": "#cityModel", "scale": "2 2 2"}
]
}
{"assets": [
{ "id": "oldenglish", "src": "https://vetcoinhq.com/oldenglish/scene.gltf"}
],
"entities": [
{ "id":"light", "geometry": { "primitive": "light"}, "type":"ambient", "color":"#FFF", "intensity": "1.5", "position":"0 1000 0"},
{ "id":"floor-plan2", "gltf-model":"#oldenglish", "scale":"1 1 1", "position":"10 0 59", "rotation":"0 180 0", "shadow":"receive: true; cast: true;"},
{ "id":"plane", "geometry": { "primitive": "plane", "width": "5000", "height": "1"}, "material": { "color": "#452E1A" }, "radius":"5000", "ground":"flat", "groundTexture":"walkernoise", "grid":"none"}
]
}
<iframe src="https://www.burchase.com/button.html?amount=1&fiat=USD&token=ethereum&to=0xaE48565bfb998f7cc7855E910345F5b801a7fcF1&text=urchase"><iframe>
<!-- Masthead -->
<header class="masthead">
<iframe src="https://www.metaverses.io/ArrangeDiameterRan" width="100%" height="100%" allow="camera 'src';microphone 'src'" border="0"></iframe>
<div class="scroll-down">
<a class="btn js-scroll-trigger" href="#about">
<i class="fa fa-angle-down fa-fw"></i>
</a>
</div>
</header>
@chrismatthieu
chrismatthieu / upload.js
Created October 31, 2021 20:36 — forked from polluterofminds/upload.js
Pinata Upload JavaScript
const getApiConfig = async () => {
const config = {
headers: {
Authorization: `Bearer ${PinataJWT}`,
}
};
return config;
};
export const handleUpload = async (selectedFiles, customName, wrapWithDirectory) => {
<audio src="https://secure1.reliastream.com/radiowarrington/;?r=1234" autoplay="true" volume="1.0"></audio>
<a-scene>
<a-assets>
<a-asset-item id="model" crossorigin="anonymous" src="https://xrpanet.s3.us-west-1.amazonaws.com/citrixhalloween/scene.gltf"></a-asset-item>
</a-assets>
<a-gltf-model src="#model" scale="1 1 1"></a-gltf-model>
</a-scene>
{
"assets": [
{ "id": "cityModel", "src": "https://xrpanet.s3-us-west-1.amazonaws.com/skybox/scene.gltf"}
],
"entities": [
{ "id":"city", "gltf-model": "#cityModel"},
{ "id":"light", "light":"color: #FFF; intensity: 10", "position":"-1 1 0"}
]
}
{
"assets": [
{ "id": "cityModel", "src": "https://xrpanet.s3-us-west-1.amazonaws.com/nightclub/scene.gltf"}
],
"entities": [
{ "id":"city", "gltf-model": "#cityModel", "scale":"2 2 2"},
{ "id":"light", "light":"color: #FFF; intensity: 10", "position":"-1 1 0"}
]
}
{
"assets": [
{ "id": "cityModel", "src": "https://xrpanet.s3-us-west-1.amazonaws.com/startrek/scene.gltf"}
],
"entities": [
{ "id":"city", "gltf-model": "#cityModel", "scale":"10 10 10"}
]
}