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
deze stond in de beschrijving van de webshop: https://files-onlinekabelshop.nl/Handleidingen/OKS-42863_drivers.zip | |
ookal is de chipset van frescologic volgens de webshop, deze driver herkend de hardware niet: https://support.frescologic.com/portal/en/kb/articles/usb-3-0-v | |
deze werkt voor mij: https://github.com/MindShow/USBDisplay/blob/main/WinDows/MSDisplay_Windows_V2.0.1.7.3.exe |
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
# thanks: https://til.simonwillison.net/json/ijson-stream | |
import json,openai,ijson | |
client = openai.OpenAI() | |
response = client.chat.completions.create( | |
model='gpt-4o', | |
response_format={ "type": "json_object" }, | |
messages=[ |
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 os,json,xlwt | |
import pandas as pd | |
from pprint import pprint | |
from openai import OpenAI | |
client = OpenAI() | |
client.api_key = os.getenv("OPENAI_API_KEY") | |
def chat(new_question, history): |
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 <stdint.h> | |
#include <TouchScreen.h> | |
#include <TFT.h> | |
#define YP A2 // must be an analog pin, use "An" notation! | |
#define XM A1 // must be an analog pin, use "An" notation! | |
#define YM 14 // can be a digital pin, this is A0 | |
#define XP 17 // can be a digital pin, this is A3 | |
// String msg = "Hello String"; |
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 processing.serial.*; | |
int h=40; | |
Serial port; | |
void setup() { | |
size(320, 320); | |
background(0); | |
port = new Serial(this, "/dev/cu.usbmodem21401", 9600); | |
} |
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
. |
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
//... | |
PVector axis = PVector.cross(lens, new PVector(0, 0, -1), null); | |
float angle = PVector.angleBetween(lens, new PVector(0, 0, 1)); | |
pushMatrix(); | |
rotate(angle, axis.x, axis.y, axis.z); | |
translate(0, 0, height/2-3); | |
noFill(); | |
stroke(0); | |
strokeWeight(5); | |
hint(DISABLE_DEPTH_TEST); |
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 java.util.ArrayList; | |
ArrayList<Line> lines = new ArrayList(); | |
float downX, downY; | |
String title = ""; | |
void setup() { | |
size(400, 400); | |
loadLines("vmove.txt"); | |
} |
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
float d, r, eyeZ = 1900; | |
PShape sphere; | |
Quaternion qTo = new Quaternion(); | |
Quaternion qNow = new Quaternion(); | |
PVector anchorPoint = null; | |
ArrayList<PVector> points = new ArrayList(); | |
PVector center = new PVector(0, 0, 0); | |
PVector top = new PVector(0, 0, 1); | |
void settings() { |
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 <Adafruit_NeoPixel.h> | |
#define LED_PIN 3 | |
#define LED_COUNT 163 | |
#define DELAYVAL 25 | |
int i=0; | |
Adafruit_NeoPixel pixels(LED_COUNT, LED_PIN, NEO_GRBW + NEO_KHZ800); | |
void setup() { |
NewerOlder