document.addEventListener("DOMContentLoaded", theDomHasLoaded, false); window.addEventListener("load", pageFullyLoaded, false);
function theDomHasLoaded(e) { // do something }
function pageFullyLoaded(e) { // do something again }
//Move all the certificated from windows .ssh (/mnt/c/Users/<username>/.ssh)folder to ~/ssh | |
sudo chmod 600 ~/.ssh/id_ed25519 | |
sudo chmod 600 ~/.ssh/id_ed25519.pub | |
sudo chmod 644 ~/.ssh/known_hosts | |
sudo chmod 755 ~/.ssh | |
//git should wowrk now |
window.addEventListener('mousemove', function(e) { | |
var x = (e.clientX / window.innerWidth * 2) - 1; | |
var y = (e.clientY / window.innerHeight * -2) + 1; | |
console.log(x,y) | |
// something awesome | |
}); |
import { | |
Mesh, | |
IcosahedronGeometry, | |
MeshBasicMaterial | |
} from 'three'; | |
import { MeshComponent } from 'whs'; | |
export class BasicComponent extends MeshComponent { | |
build() { |
<template> | |
<div id="phaserCanvas"></div> | |
</template> | |
<script> | |
export default { | |
data() { | |
return { | |
game: () => {} |
document.addEventListener("DOMContentLoaded", theDomHasLoaded, false); window.addEventListener("load", pageFullyLoaded, false);
function theDomHasLoaded(e) { // do something }
function pageFullyLoaded(e) { // do something again }
<template> | |
<div id="gl"> | |
<div class="columns" style="position:absolute;top:10px;left:10px;z-index:1001;"> | |
<div class="column"> | |
<div class="button" @click="buttonClicked">Hello-{{count.button}}</div> | |
</div> | |
<div class="column">{{sysInfo.width}}x{{sysInfo.height}}</div> | |
<div class="column">{{sysInfo.lastKeyDown}}</div> | |
<div class="column">{{jfSpriteDir}}</div> | |
<div class="column">{{drag}}</div> |
<template> | |
<div class="content"> | |
<div id="testLabel">Testing</div> | |
<div id="drawhere"></div> | |
debug:{{JSON.stringify(debug)}} | |
</div> | |
</template> | |
<script> | |
import { |
/*sheet._frameKeys.map(t=>txs.push( PIXI.utils.TextureCache[t])) | |
console.log(txs) | |
let bird1 = new PIXI.AnimatedSprite(txs); | |
console.log(bird1)*/ | |
# simulate | |
sudo kernelstub -c -v -a "splash=false quiet=false" | |
# Actual command to deactivate graphical boot | |
sudo kernelstub -v -a "splash=false quiet=false" |