Code Snippets GAP

Short texts GAP 🧑‍💻 Code snippets GAP ✍️ Reading lists GAP 👀

RepRap 3 Duet 2 Wifi Config.g

; Configuration file for Duet WiFi (firmware version 3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v2.1.5 on Wed Jan 08 2020 16:01:30 GMT-0800 (Pacific Standard Time) ; General preferences G90 ; send absolute coordinates… M83 ; …but relative extruder moves M550 P”Ender3″ ; set printer name ; […]

Example gdscript (Godot) json file helpers

extends Reference # Copyright (C) 2020: Andrew Woodward (xarses) # This file is available under the MIT license class_name JSONFile var data := {} var fileName := “” func _init(resource=””): if typeof(resource) == TYPE_STRING: data = self.load(resource) fileName=resource elif typeof(resource) == TYPE_DICTIONARY: data = resource if not data: data = _default_data() # Apply migrations migrate_v1() […]