Skip to content

Instantly share code, notes, and snippets.

@adonishi
adonishi / 10-inch-windowed.scad
Last active December 5, 2025 17:46
Version 2
include <BOSL2/std.scad>
include <BOSL2/walls.scad>
/* [Panel settings] */
// panel width: 254 = 10 inch
panel_width=254;
// panel height: 44.5: 1U, 89: 2U
panel_height=44.5;
// panel thickness: 3 (shelf thickness in "Misc")
panel_thick=3;
@adonishi
adonishi / gist:baaf2fd0356249432a04ead5693c26f6
Created February 13, 2024 07:49
my klipper's printer.cfg file for Tronxy CRUX1 (beep not working)
[include mainsail.cfg]
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
restart_method: command
[virtual_sdcard]
path: /home/ado/printer_data/gcodes
[stepper_x]
step_pin: PE5
@adonishi
adonishi / awaitThen.js
Last active October 25, 2020 03:56
js: is 'then()' awaitable?
//
// is 'then()' awaitable?
// YES! this is proof of concept.
//
(async () => {
console.log('start')
function timeoutFunc() {
console.log('timeout')
@adonishi
adonishi / VewController.h
Last active March 2, 2020 02:56
iOS7 以降のMapKitで簡単に、地理院地図のタイルをオーバーレイさせる方法。 タイルのスタイルを変更する場合には、http://portal.cyberjapan.jp/help/development.html#h4-1 を参照
@interface ViewController : UIViewController <MKMapViewDelegate> {
IBOutlet MKMapView *mapView;
}
@property (nonatomic, retain) MKTileOverlay *tile_overlay;
@end