This file contains 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
NVGcolor getModuleBodyColor(NSVGimage* svgHandle) { | |
// educated guess as to what a reasonable minimum area should be, | |
// based on testing a bunch of different modules | |
float largestArea{11000.f}; | |
// default in case we can't find anything reasonable | |
NVGcolor bodyColor = nvgRGBA(255, 255, 255, 255); | |
for (NSVGshape* shape = svgHandle->shapes; shape; shape = shape->next) { | |
// skip invisible shapes |
This file contains 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
G21 ;metric values | |
G90 ;absolute positioning | |
M82 ;set extruder to absolute mode | |
M107 ;start with the fan off | |
G28 X0 Y0 ;move X/Y to min endstops | |
G28 Z0 ;move Z to min endstops | |
G1 Y5.0 F{speed_travel} ;move the platform down 15mm | |
G92 E0 ;zero the extruded length | |
G1 X40 E30 F200 ; Extrude 30mm of filament in a 4cm line |
This file contains 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
G21 ;metric values | |
G90 ;absolute positioning | |
M82 ;set extruder to absolute mode | |
M107 ;start with the fan off | |
G28 X0 Y0 ;move X/Y to min endstops | |
G28 Z0 ;move Z to min endstops | |
G1 Z15.0 F{speed_travel} ;move the platform down 15mm | |
G92 E0 ;zero the extruded length | |
; remove the following line |
This file contains 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
require "roda" | |
class Rodaaaaaapp < Roda | |
route do |r| # `r` is just Rack::Request + a few additional methods for routing (see below) | |
r.root do | |
"hey." | |
end | |
end | |
end |
This file contains 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
remove-zendesk: test mail related stuff | |
remove-skylight: probably nothing to test here? | |
squished-comment-signin: is comment signin still squished? | |
event-sweeper-fix: create event, add/remove sponsor, cache should be swept immediately | |
implement-fastclick: test demo on mobile | |
shift-static-route: test demo.thebolditalic.com/shift | |
sharethrough-article-ad: ensure ad collapses on desktop |