This file contains 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
// P5js hack to adjust export for printing. | |
const exportScale = 4; | |
function keyPressed() { | |
if (key == 's' || key == 'S'){ | |
pixelDensity(exportScale); | |
draw(); | |
let fileName = | |
"yourP5project_" + year() + "_" + month() + | |
"_" + day() + "_" + hour() + "_" + minute() + |
This file contains 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
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
country=US | |
network={ | |
ssid="YOURSSID" | |
psk="YOURPASSWORD" | |
scan_ssid=1 | |
} |
This file contains 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
import React from 'react'; | |
import Table from 'Components/Table/Table'; | |
export default { | |
title: 'Table' | |
} | |
export const Header = () => { | |
return( | |
<Table> |
This file contains 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
Show hidden characters
{ | |
"compilerOptions": { | |
"baseUrl": "src" | |
}, | |
"include": ["src/**/*"] | |
} |
This file contains 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
{ | |
"compilerOptions": { | |
"baseUrl": "src", | |
"paths": { | |
//Assuming your components/utilities live in ./src | |
//Update this path as necessary | |
"@Components/*": ["./src/Components/*"] | |
} | |
}, | |
"include": ["src/**/*"] |
This file contains 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_container { | |
position: absolute; | |
left: 50%; | |
bottom: 0px; | |
perspective: 1000; //fucking perpective needed :D | |
-webkit-perspective: 1000; | |
canvas { | |
// width: 200px !important; //important to force p5js canvas to scale | |
// height: 200px !important; | |
// transform: rotateY(20deg); //works |
This file contains 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
// logs all Devices to console; if served via HTTPS or permission for Media is granted, devices will have clear names | |
// otherwise the list will only show cryptic IDs | |
navigator.mediaDevices.enumerateDevices().then(function (devices) { | |
devices.forEach(function(device) { | |
console.log(device) | |
}) | |
}) |
This file contains 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
{ | |
// Verwendet IntelliSense zum Ermitteln möglicher Attribute. | |
// Zeigen Sie auf vorhandene Attribute, um die zugehörigen Beschreibungen anzuzeigen. | |
// Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "chrome", | |
"request": "launch", | |
"name": "Launch Chrome", |
This file contains 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 <Keyboard.h> | |
/* interrupt routine for Rotary Encoders | |
tested with Noble RE0124PVB 17.7FINB-24 https://www.nobleusa.com/pdf/xre.pdf - available at pollin.de | |
and a few others, seems pretty universal | |
The average rotary encoder has three pins, seen from front: A C B | |
Clockwise rotation A(on)->B(on)->A(off)->B(off) | |
CounterCW rotation B(on)->A(on)->B(off)->A(off) | |
and may be a push switch with another two pins, pulled low at pin 8 in this case |
This file contains 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
/* interrupt routine for Rotary Encoders | |
by rafbuff - thanks whereever u are! | |
tested with Noble RE0124PVB 17.7FINB-24 https://www.nobleusa.com/pdf/xre.pdf - available at pollin.de | |
and a few others, seems pretty universal | |
The average rotary encoder has three pins, seen from front: A C B | |
Clockwise rotation A(on)->B(on)->A(off)->B(off) | |
CounterCW rotation B(on)->A(on)->B(off)->A(off) | |
and may be a push switch with another two pins, pulled low at pin 8 in this case |
NewerOlder