Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Quinston Pimenta graphoarty

🎯
Focusing
Block or report user

Report or block graphoarty

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:2f7fd8ab452def8c63d09831ea69a3c2
{
...,
...,
"scripts": {
...,
"start": "node main.js"
},
...,
...
}
View gist:c7703debc7f25a73ab1e07c81cac3442
git add .
git commit -m "Initial Commit"
git push -u origin master
View gist:8a2ea93982ca7fac94a6d6c1a3c8a3ef
{
...,
...,
"scripts": {
...,
"start": "electron ."
},
...,
...
}
View gist:3f1b58553358e2351c5400a15bc0411d
// main.js
// Import app and BrowserWindow
const { app, BrowserWindow } = require('electron');
// When Electron has finished initializing after import, run the window creation function
app.on('ready', function(){
// Browser window actually creates the window (Create and control browser windows.)
win = new BrowserWindow({ width: 1280, height: 720 });
View gist:c576f63c36bd0f4044b00bf042767810
<!-- index.js -->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>360 / VR Viewer</title>
</head>
<body>
View gist:8f08b3393d1b7cc9c01aa28e5ff17164
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>360 / VR Viewer</title>
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
View gist:facef854f0485a2150f55c632e7c74e8
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>360 / VR Viewer</title>
<link rel="stylesheet" href="./css/materialize.min.css">
View gist:2035840747369b77ff63f5db4fc20a8c
<!-- Three.js will use this div as the viewport (on our request of course) -->
<div id="webglviewer" class="full-screen"></div>
You can’t perform that action at this time.