Skip to content

Instantly share code, notes, and snippets.

@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