Skip to content

Instantly share code, notes, and snippets.

joshuabradley012 / Object collisions with canvas
Last active Dec 15, 2021
An example of 2D collisions using JavaScript Canvas
View Object collisions with canvas
class State {
constructor(display, actors) {
this.display = display;
this.actors = actors;
update(time) {
* provide an update ID to let actors update other actors only once
View scrapeUsingJQuery.js
console.log("---> Running");
const curl = require("curl");
const jsdom = require("jsdom");
const url = "";
curl.get(url, null, (err,resp,body)=>{
if(resp.statusCode == 200){
dmnsgn /
Last active Jan 23, 2022
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries

  • three.js: JavaScript 3D library
  • an open software ecosystem for WebGL, built on top of browserify and npm.
  • PixiJS: Super fast HTML 5 2D rendering engine that uses webGL with canvas fallback
  • Pex: Pex is a javascript 3d library / engine allowing for seamless development between Plask and WebGL in the browser.
  • Babylon.js: a complete JavaScript framework for building 3D games with HTML 5 and WebGL
  • Filament: Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS and WASM/WebGL
  • ClayGL: A WebGL graphic library
taniarascia / nav.html
Last active Aug 20, 2021
Responsive Dropdown Navigation Bar
View nav.html
<section class="navigation">
<div class="nav-container">
<div class="brand">
<a href="#!">Logo</a>
<div class="nav-mobile">
<a id="nav-toggle" href="#!"><span></span></a>
<ul class="nav-list">
lukebiggerstaff / AJAXTable.js
Last active Dec 21, 2019
A script to create a mobile first responsive table using AJAX and vanilla javascript
View AJAXTable.js
var getTableDataAJAX = function() {
var getTableData = new XMLHttpRequest();
getTableData.onreadystatechange = function() {
if(getTableData.readyState === 4) {
var tableInfo = JSON.parse(getTableData.responseText);
var tableHeading = tableInfo.tableHeading;
var tableCellsPets = tableInfo.tableCellsPets;
var tableCellsPeople = tableInfo.tableCellsPeople;
kevinSuttle /
Last active Jan 25, 2022 — forked from lancejpollard/
List of Usable HTML Meta and Link Tags
ScottPhillips / .htaccess
Created Feb 2, 2012
Common .htaccess Redirects
View .htaccess
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php
#Redirect an entire site:
Redirect 301 /
#Redirect an entire site to a sub folder
Redirect 301 /