Skip to content

Instantly share code, notes, and snippets.

View kolibril13's full-sized avatar
🐶

Jan-Hendrik Müller kolibril13

🐶
View GitHub Profile
@kolibril13
kolibril13 / iris_quack.ipynb
Created August 15, 2024 11:15
iris dataset with quack
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kolibril13
kolibril13 / solara.ipynb
Created August 9, 2024 10:36
solara-tldraw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kolibril13
kolibril13 / hello.py
Last active August 7, 2024 09:49
marimo reactive tldraw colorpicker
import marimo
__generated_with = "0.7.17"
app = marimo.App(width="medium")
@app.cell
def __():
import matplotlib.pyplot as plt
import numpy as np
@kolibril13
kolibril13 / twitter_bird.js
Created May 22, 2024 21:54
Script to bring back the twitter bird
// ==UserScript==
// @name Log Hi on X
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Logs Hi to the console on x.com/home, changes the website title, hides a specific element, and changes the favicon. Generated by ChatGPT, no warrenty.
// @author Your Name
// @match https://x.com/home
// @grant none
// ==/UserScript==
import { useState, useEffect } from "react";
import { Tldraw, createShapeId } from "tldraw";
import "tldraw/tldraw.css";
export default function App() {
const [xCoordinate, setXCoordinate] = useState(350);
const [editorInstance, setEditorInstance] = useState(null);
const handleMount = (editor) => {
setEditorInstance(editor);
@kolibril13
kolibril13 / embed_base64_image_in_markdown.ipynb
Created January 7, 2024 23:14
embed_base64_image_in_markdown
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Path to your image
image_path = "image_plot.png"
import base64
import requests
# OpenAI API Key
from api_key import api_key
# Function to encode the image
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kolibril13
kolibril13 / blender_in_notebook.ipynb
Last active September 5, 2023 10:25
testing Blender in Jupyter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kolibril13
kolibril13 / diff_viewer.ipynb
Last active May 18, 2023 14:21
diff-viewer-widget
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.