Skip to content

Instantly share code, notes, and snippets.

@llamadeus
llamadeus / End G-Code.exe
Created February 8, 2024 12:47
CR-10s Pro start & end g-code
G91 ;Relative positioning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positionning
G1 X0 Y{machine_depth} ;Present print
M106 S0 ;Turn-off fan
M104 S0 ;Turn-off hotend
@llamadeus
llamadeus / App.tsx
Created November 7, 2021 22:45
Use React.Suspense for Apollo Client React hooks
import { gql, useQuery } from '@apollo/client';
import React, { ReactElement, useEffect, useMemo, useRef } from 'react';
const ME_QUERY = gql`
query Me {
me {
firstName
}
}