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
sudo apt install libegl1-mesa-dev libwayland-dev libxkbcommon-dev wayland-protocols | |
git clone https://github.com/erincatto/box2d.git | |
cd box2d | |
./build.sh |
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
// Set up the Three.js scene | |
const scene = new THREE.Scene(); | |
const camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight, 1, 10000); | |
camera.position.z = camera.position.y = 500; | |
scene.add(camera); | |
const geometry = new THREE.CubeGeometry(200, 200, 200); | |
const material = new THREE.MeshNormalMaterial(); |
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 1 column, instead of 11 in line 2.
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
# View in 3table | |
# https://3table.glitch.me/ | |
cube, model, 2.5, 0.18, 8, 0, 9, -100, 0, 0, 0 | |
cube, lid, 2.6, 0.18, 8, 0, 310, -100, 0, 0, 0 | |
cube, model, 0.18, 3, 8, 120, 150, -100, 0, 0, 0 | |
cube, model, 0.18, 3, 8, -120, 150, -100, 0, 0, 0 | |
#1689515232568, model, 18, 20, 20, 0, 140, -300, -90, 0, 0 | |
#1689515223617, model, 10, 10, 10, 0, 60, 120, 0, 90, 0 | |
cylinder, model, 0.3, 2, 0.3, -108, 100, 0, 0, 0, 0 | |
cylinder, model, 0.3, 2, 0.3, 108, 100, 0, 0, 0, 0 |
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
#include <Joystick.h> | |
#define ThrottlePin 2 | |
#define SteeringPin 3 | |
int ThrottleValue; | |
int SteeringValue; | |
Joystick_ Joystick; |
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 1 column, instead of 11 in line 3.
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
# View in 3table | |
# https://3table.glitch.me/ | |
# https://3table.glitch.me/#url=https://gist.githubusercontent.com/joegaffey/aacfd2438b83411e38bdff322aeeac72/raw/958e71de02b2c9eedada7d330a2c3269f55a4841/profile_cube.csv | |
4040, side, 1, 1, 5, 230, 0, -250, 0, 0, 0 | |
4040, side, 1, 1, 5, -230, 0, -250, 0, 0, 0 | |
4040, side, 1, 1, 4.2, 210, 0, -230, 0, -90, 0 | |
4040, side, 1, 1, 4.2, 210, 0, 230, 0, -90, 0 | |
c4040, side, 1, 1, 1, -210, 20, -210, 90, 0, 0 | |
c4040, side, 1, 1, 1, 210, -20, -210, 90, 180, 0 | |
c4040, side, 1, 1, 1, -210, -20, 210, -90, 0, 0 |
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
const LOCAL_FEED_URL = `./feed.rss`; | |
const FEED_ERROR_TXT = `Feed unavailble, check back later`; | |
const postsEl = document.querySelector('.posts'); | |
function showRSS(RSS_URL) { | |
fetch(RSS_URL) | |
.then((response) => { | |
if (response.ok) { return response.text(); } | |
else throw new Error('Something went wrong'); }) |
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
let html = "<img src='"+temp1.toDataURL()+"' alt='from canvas'/>"; | |
let tab = window.open(); | |
tab.document.write(html); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Basic annotation UI"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<p> | |
I will arise and go now, and go to Innisfree, | |
And a small cabin build there, of clay and wattles made; | |
Nine bean-rows will I have there, a hive for the honey-bee, |
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
// Simple gamepad example that demonstraits how to read five Arduino | |
// digital pins and map them to the Arduino Joystick library. | |
// | |
// The digital pins are grounded when they are pressed. | |
// | |
// NOTE: This sketch file is for use with Arduino Leonardo and | |
// Arduino Micro only. | |
// | |
// Modified version of original code by Matthew Heironimus | |
// 2018-08-11 |
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
const linksSelector = '.link-selector'; | |
const itemSelectors = ['.item1', '.item1', '.item1']; | |
const anchors = document.querySelectorAll(linksSelector); | |
const links = []; | |
anchors.forEach((anchor) => { links.push(anchor.href) }); | |
const results = []; | |
links.forEach((link) => { |
NewerOlder