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 json | |
from shapely import wkt | |
from shapely.geometry import mapping | |
with open('OSG.json', 'r') as infile: | |
data = json.load(infile) | |
geojson_features = [] | |
for item in data: |
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 cv2,sys,re,json | |
import numpy as np | |
from pathlib import Path | |
input_folder = "../TAB bestanden met afbeelding Ad" | |
for tab_filename in Path(input_folder).rglob("*.png"): | |
print(tab_filename) | |
sys.exit() |
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 json,requests | |
def create_iiif_manifest(json_data): | |
image_api = "https://maior-images.memorix.nl/utr/iiif/" | |
manifest_id = "https://iiif.hualab.nl/riool-en-huisnummer-kaart" | |
manifest = { | |
"@context": "http://iiif.io/api/presentation/3/context.json", | |
"id": manifest_id, | |
"type": "Manifest", |
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); |
NewerOlder