The Context-Builder pattern is a structural testing pattern used with the MSpec BDD framework. Its central purpose is to keep spec classes (the things you read when understanding system behaviour) free of construction noise — the boilerplate of creating fakes, wiring them together, and assembling the subject under test — while still making that construction easy to follow in a dedicated place.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| windows: | |
| image: dockurr/windows | |
| container_name: windows | |
| devices: | |
| - /dev/kvm | |
| cap_add: | |
| - NET_ADMIN | |
| ports: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [gcode_macro PRINT_START] | |
| description: Ready the printer for printing. | |
| gcode: | |
| {% set BedTemperature = params.get('BED_TEMPERATURE', params.get('BED', 60)) | int %} | |
| {% set ExtruderTemperature = params.get('EXTRUDER_TEMPERATURE', params.get('EXTRUDER', 210)) | int %} | |
| {% set ExtruderStandbyTemperature = params.get('EXTRUDER_STANDBY_TEMPERATURE', params.get('STANDBY', 170)) | int %} | |
| {% set ChamberTemperature = params.get('CHAMBER_TEMPERATURE', params.get('CHAMBER', 20)) | int %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Macros for automating heat soak. | |
| # Will measure the Z-offset using the Auto-Z-Calibration plugin every few minutes. | |
| # Keeps track of how much the offset is changing between measurements. | |
| # When the delta falls below a threshold, stops measuring and starts the print queue. | |
| # | |
| # ASSUMPTIONS | |
| # 1. You are using Klicky Probe (this is a prerequisite for the Auto-Z-Calibration plugin) | |
| # 2. Auto-Z-Calibration plugin is installed and configured | |
| # | |
| # DEFAULTS |
I'm on a bit of a crusade to persuade designers of open-source models to include their original CAD models.
There seems to be a trend of including a STEP file and calling it a day. While that has uses, it is only a partial solution and does not represent the "source code", so arguably an open source design must have the original CAD model included.
I am aware that to some people this may appear as if I am being "ungrateful" and truly that is not the case. I am grateful for all the wonderful free models. I am, though, enthusiastic about the idea of remixing, improving, and building upon those ideas. I suspect that many people think that the STEP file is enough for this, but it really isn't, for several reasons.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [gcode_macro LOAD_FILAMENT] | |
| gcode: | |
| {% set LoadSpeed = params.SPEED | default(1800) | int %} | |
| {% set PrimeSpeed = params.PRIME_SPEED | default(400) | int %} | |
| {% set PurgeLength = params.PURGE_LENGTH | default(55) | int %} | |
| SAVE_GCODE_STATE NAME=__filament__load | |
| M83 | |
| G1 E5 F75 | |
| G1 E50 F{LoadSpeed} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd ~/klipper | |
| make | |
| ~/klipper/scripts/flash-sdcard.sh /dev/serial/by-id/usb-Klipper_lpc1769_0DF0FF0EA69869AF2046415EC42000F5-if00 btt-skr-turbo-v1.4 | |
| ~/klipper/scripts/flash-sdcard.sh /dev/serial/by-id/usb-Klipper_lpc1769_10D0FF0BA39869AFC04E405EC12000F5-if00 btt-skr-turbo-v1.4 | |
| cd ~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [gcode_macro PAUSE] | |
| rename_existing: BASE_PAUSE | |
| gcode: | |
| {% set RetractionDistance = params.E | default(1.7) | float %} | |
| LED_PAUSED | |
| {% set x_park = printer.toolhead.axis_minimum.x|float + 5.0 %} | |
| {% set y_park = printer.toolhead.axis_maximum.y|float - 15.0 %} | |
| {% set max_z = printer.toolhead.axis_maximum.z|float %} | |
| {% set act_z = printer.toolhead.position.z|float %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [gcode_macro PA_TUNER] | |
| description: Pressure Advance Tuning with pre-sliced tuning tower | |
| gcode: | |
| # Set your own default parameters here | |
| {% set filament_d = params.FILAMENT_DIAMETER|default(1.75)|float %} | |
| {% set e_width = params.EXTRUSION_WIDTH|default(0.4)|float %} | |
| {% set tool = params.TOOLHEAD|default("") %} | |
| {% set rect_side_len = params.SIDE_LENGTH|default(100.0)|float %} | |
| {% set layer_h = params.LAYER_HEIGHT|default(0.3)|float %} | |
| {% set fspeed = params.FAST_PRINT_SPEED|default(150.0)|float %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # generated by SuperSlicer 2.3.56 on 2021-08-12 at 13:39:50 UTC | |
| allow_empty_layers = 0 | |
| avoid_crossing_not_first_layer = 1 | |
| avoid_crossing_perimeters = 0 | |
| avoid_crossing_perimeters_max_detour = 0 | |
| bed_custom_model = | |
| bed_custom_texture = | |
| bed_shape = 0x0,350x0,350x350,0x350 | |
| bed_temperature = 50,90,90,90,90 | |
| before_layer_gcode = ;BEFORE_LAYER_CHANGE\n;[layer_z]\n\n |
NewerOlder