Skip to content

Instantly share code, notes, and snippets.

View VojtaSim's full-sized avatar

Vojtěch Šimko VojtaSim

View GitHub Profile
@VojtaSim
VojtaSim / M119
Created April 13, 2020 10:00
Output
Reporting endstop status
x_min: open
y_min: open
z_min: open
ok
@VojtaSim
VojtaSim / Configuration.h
Created April 13, 2020 09:45
Marlin Config
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@VojtaSim
VojtaSim / ScreenDots.tsx
Created June 8, 2019 16:30
react-navigation: Shazam-like TabBar with dots
import React, { Component } from 'react';
import { View, SafeAreaView, Animated } from 'react-native';
import { NavigationState } from 'react-navigation';
import { SceneRendererProps } from 'react-native-tab-view';
import Styles, { DOT_SIZE, DOT_MARGIN, BAR_WIDTH } from './styles';
type ScreenDotsProps = SceneRendererProps & {
state: NavigationState
};
@VojtaSim
VojtaSim / cursorPagination.ts
Last active December 21, 2022 17:19
TypeORM + TypeGraphQL cursor pagination
import { ObjectType, Field, ClassType, Int, ArgsType } from 'type-graphql';
import { SelectQueryBuilder } from 'typeorm';
import Cursor, { TCursor } from 'scalar/cursor';
@ArgsType()
export class CursorPaginationArgs {
@Field({ nullable: true })
after?: TCursor;