This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pre id="maze"></pre> | |
<script> | |
'use strict' | |
const maze = [ | |
'#########', | |
'#@..#####', | |
'###.#####', | |
'#...#####', | |
'#.#######', | |
'#.#...###', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<canvas id='canvas' width='1000' height='1000'> | |
<script> | |
const c = document.getElementById('canvas') | |
const ctx = c.getContext('2d') | |
const unit = 100 | |
let player = {x: 1, y: 1} | |
let wall = {x: 1, y:0 } | |
//wall position is 1,0, wall is unit size | |
//wall width and height decrease linerarly with distance |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<devicevendordef> | |
<vendorname>RDING</vendorname> | |
<vendorid>0x0c45</vendorid> | |
</devicevendordef> | |
<deviceproductdef> | |
<productname>FOOTSWITCH</productname> | |
<productid>0x7403</productid> | |
</deviceproductdef> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "https://www.data.govt.nz/catalog.jsonld", | |
"@id": "https://gist.githubusercontent.com/ebuckley/data.json", | |
"@type": "dcat:Catalog", | |
"conformsTo": "https://www.data.govt.nz/toolkit/schema", | |
"dataset":[ | |
{ | |
"title": "Rivers and streams: monitoring and reporting", | |
"description": "Waikato Regional Council regularly monitors and reports on the quality of our region's river and stream resources, and the pressures that face these waterbodies and the plants and animals that rely on them for habitat.", | |
"identifier": "https://www.waikatoregion.govt.nz/Environment/Environmental-information/Environmental-indicators/River-and-streams/", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
body { | |
background-color: #81C4A6; | |
} | |
.grid { | |
margin:1em auto; | |
border-collapse:collapse; | |
} | |
.grid td { | |
cursor:pointer; |
OlderNewer