bash
cd ~
git clone https://github.com/pedrolamas/klipper-virtual-pins.git
./klipper-virtual-pins/install.sh
import json | |
import math | |
import re | |
import sqlite3 | |
def extract_flute_length(name): | |
"""Extract flute length from tool name using a pattern like '2*12mm Drill' -> 12mm.""" | |
match = re.search(r"(\d+(\.\d+)?)\*\s*(\d+(\.\d+)?)mm", name) | |
if match: |
1 | |
Cargo.lock | |
Cargo.toml | |
src | |
target |
1 | |
Cargo.lock | |
Cargo.toml | |
src | |
target |
trait Longable{ def toLong(): Long } | |
implicit class IntCanLong(int: Int) extends Longable { | |
def toLong(): Long = int.toLong | |
} | |
implicit class StringCanLong(str: String) extends Longable { | |
def toLong(): Long = str.toInt.toLong | |
} |
/*_*/ | |
val 1 = "Hello" | |
/*_*/ |
object && { | |
def unapply[A](e: A) = Some(e -> e) | |
def test() { | |
val greaterThan10 = Find[Int](_ > 10) | |
List(1, 2, 11, 3) match { | |
// All must succeed | |
case greaterThan10(ten) && Last(last) && Head(head) => | |
println(ten) // 11 | |
println(last) // 3 |
#!/bin/bash | |
#echo "Start Export Process" | |
#echo "Log into Keybase..." | |
keybase login | |
#echo "Exporting your PGP keys..." | |
keybase pgp export -o keybase.public.key | |
keybase pgp export -s -o keybase.private.key |
import scala.concurrent.Future
import java.util.concurrent.Executor
import scala.concurrent.ExecutionContext
//Please don't do this in production code! It is used to execute
//the documentation code synchronously to generate more readable output
implicit val synchronousExecutionContext = ExecutionContext.fromExecutor(new Executor {
def execute(task: Runnable) = task.run()
})
{ | |
"version":"0.1", | |
"advices":[{ | |
"error":{ | |
"type":"notAMember", | |
"what":"value step", | |
"notAMemberOf":".*Partial.*" | |
}, | |
"text":"You may need to import matryoshka.instances._", | |
"library":{ |