Skip to content

Instantly share code, notes, and snippets.

View oderwat's full-sized avatar
💭
Gleam around...

Hans Raaf oderwat

💭
Gleam around...
View GitHub Profile
@oderwat
oderwat / BearGrabber.js
Created November 16, 2017 23:16
Safe Bear URL Grabber Scriptlet
javascript:location.href='bear://x-callback-url/add-text?title=URL-Grabber&mode=prepend&text='+encodeURIComponent('['+document.title+']('+location.href+")")
@oderwat
oderwat / pa-test-0.0-to-0.6-220C-50C-1.75-0.4-bed-220x200.gcode
Created June 4, 2018 22:57
Example GCode of Klipper Pressure Advance Test produced by my gcwiz tool
; gcode made by gcwiz (c) 2018 Hans Raaf / GitHub: OderWat
;
; Notice: This can't be printed with S3D because it does not accept
; the Klipper specific code. Use OctoPrint or try some other host.
G28
G1 Z5 F1500
; printing 20 sections for pa from 0.0000 to 0.6000 in steps of 0.0300
; first layer is 0.100 mm, other layers are 0.200 mm, total height is 40.000 mm
; changing pressure_advance every 2.000 mm (every 10 layers of a total of 200 layers)
G1 X5 Y10 F9000
@oderwat
oderwat / Naivebayes.go
Created April 23, 2022 02:43 — forked from caongocthai/Naivebayes.go
Sentiment Analysis: Naive Bayes Classifier from scratch in Golang
package main
// The string values of the 2 classes
// They can be "positive" >< "negative" as in this example
// They can also be "ham" >< "spam", i.e.
const (
positive = "positive"
negative = "negative"
)
@oderwat
oderwat / capollama.go
Last active October 26, 2024 20:11
A simple image captioning program using Ollama v0.4.0-rc with the 'x/llama3.2-vision' model.
package main
import (
"context"
"fmt"
"log"
"os"
"path/filepath"
"strings"
@oderwat
oderwat / SPACE-ISSUE-GRABBER.md
Last active April 25, 2025 07:37
JetBrains Space - Issue Grabber Scripts (MIT License)

JetBrains Space - Issues JSON export

BEWARE: This is provided as is and we do not give any support to using it. It may or may not work for you!

These bash scripts are meant to export all the issues of JetBrains Space projects.

They were create on OSX and you need jq and curl installed.

There is one script for exporting a single issue and one to export all of the Issues (up to 1000 is the limit)