- I want to keep track of particular Vanguard ETFs
- The Vanguard website doesn't let me track multiple ETFs
- Turns out the Vanguard website relies on an externally exposed API
- Along the way I picked up
- JQuery
- Plotly
- https://vanguardplotly.kkwoo.repl.co/
Friday, 11 December 2020
Vanguard unit price plotting
Diceware offsite
- I want to create passwords using my browser
- Diceware is good
- Not having physical dice and the Diceware list is inconvenient
- I have a JS page on this blog already but I wanted to publish elsewhere
- So I copied it to https://diceware-atyourownrisk.kkwoo.repl.co/
Chaos Theory Flash Game
- There's a Flash game I like but Flash won't be supported past Dec-2020
- I wrote a cut-down version with HTML5 at https://chaos-theory-flash.kkwoo.repl.co/
- There were a few challenges
- Getting started
- Learning the following from scratch
- HTML5
- CSS
- JS
- Suitable libraries
- At first I went with phaser and other game libraries
- I departed from game libraries because they were suited to platform games and other traditional games involving a protagonist player and enemies
- So I chose Pixi.js
- Pixi.js
- GSAP
- Limited concentration time
- This led to increased planning
- Resulted in several minimum viable products
- Learning pixi.js
- Get the quickstart working
- Get shape sprites working
- Get containers working
- Get collision detection working
- Copy/paste spicyoghurt code
- Get tweening working
- GSAP piece
- Construct game logic
- Something to play the game once
- Add a main screen
- Add a link to start a new game
- I did this only because I'm tired of hitting reload on the browser and wasting mobile data
- Next steps are
- make it more like the original
- Cool comments/insults based on scoring
- 3 rounds instead of 1
- refactor the code because it's terrible design
- However, I'm content with the game as it now stands
"npx degit sveltejs/template abc" resulting in "could not fetch remote https://github.com/sveltejs/template"
- at first I thought it was a firewall issue
- I banged away trying different things including stopping the firewall
- none of this worked because the firewall wasn't the problem
- I was too thick to stop and walk away
- instead I took the kids to swimming class
- afterwards, I was playing around and ran "npx degit" for fun and induced an error and discovered:
- (Use `node --trace-warnings ...` to show where the warning was created)
- I ran "npx --trace-warnings degit sveltejs/template abc" which gave:
- npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -2
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/sveltejs/template.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-12-12T04_25_29_798Z-debug.log - At first, I thought I was missing ssh
- Then I discovered I was missing git
- Running "npx --trace-warnings degit sveltejs/template proj02" resulted in failure
- command not found: template
- But once I removed "--trace-warnings" I had success:
- DESKTOP-NNBAUML:~# npx degit sveltejs/template proj01
> cloned sveltejs/template#master to proj01
Subscribe to:
Comments (Atom)