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
M620 S[next_extruder]A | |
M204 S9000 ; set printing and travel acceleration to 9000mm/min^2 | |
{if toolchange_count > 1 && (z_hop_types[current_extruder] == 0 || z_hop_types[current_extruder] == 3)} | |
G17 ; select xy plane | |
G2 Z{z_after_toolchange + 0.4} I0.86 J0.86 P1 F10000 ; spiral lift a little from second lift | |
{endif} | |
G1 Z{max_layer_z + 3.0} F1200 ; raise the nozzle 3mm above what has already been printed ** only requiered when printing by object ?! otherwise going + 0.5mm should be enought | |
M106 P1 S0 ; turn part cooling fan off | |
M106 P2 S0 ; turn Aux fan off |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
const addressMachine = Machine( | |
{ | |
id: "address", | |
initial: "init", | |
states: { | |
init: { | |
on: { | |
"": [ | |
{ target: "edit", cond: "alreadyHasValues" }, | |
{ target: "search" }, |
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
const machine = Machine( | |
{ | |
id: "wizard", | |
initial: "nameEntry", | |
context: { values: {} }, | |
meta: { version: 1 }, | |
states: { | |
nameEntry: { | |
on: { |
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
const machine = Machine( | |
{ | |
id: "wizard", | |
initial: "nameEntry", | |
context: { values: {} }, | |
meta: { version: 2 }, | |
states: { | |
nameEntry: { | |
on: { |
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
const machine = Machine( | |
{ | |
id: "wizard", | |
initial: "nameEntry", | |
context: { values: {} }, | |
states: { | |
nameEntry: { | |
on: { | |
NEXT: { |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
#!/bin/bash | |
emojis=( ✨ ⚡️ 💫 🔑 ) | |
num_emojis=${#emojis[*]} | |
echo "${emojis[$((RANDOM%num_emojis))]}" |
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
function renderSVG() { | |
services.fetchAll() | |
.done(function(results) { | |
const data = {}; | |
results.forEach(r => data[r.name] = r); | |
const lastSeenDates = results.map(r => r.lastSeenDate); | |
data.lastSeenDate = Math.max.apply(Math, lastSeenDates); | |
// console.log(data) |
NewerOlder