Skip to content

Instantly share code, notes, and snippets.

View ridercz's full-sized avatar
🇨🇿

Michal Altair Valášek ridercz

🇨🇿
View GitHub Profile
@ridercz
ridercz / MagClasp.stl
Created April 4, 2020 19:54
MagClasp - STL
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ridercz
ridercz / RedukceOdsavani.scad
Last active March 12, 2020 17:16
Redukce odsávání pro kotoučovou pilu ve FutLabu
// Redukce odsávání pro stolovou pilu ve FutLabu
// (c) Michal A. Valášek, 2020 - CC BY-NC-SA
include <A2D.scad>; // https://github.com/ridercz/A2D
assert(a2d_required([1, 5, 0]), "Please upgrade A2D library to version 1.5.0 or higher.");
/* [Narrow part] */
narrow_outer_diameter = 64;
narrow_length = 25;
@ridercz
ridercz / gsch.scad
Created February 12, 2020 16:58
Gopas Suction Cup Holder
/****************************************************************************
* SUCTION CUP HOLDER version 1.0 (2020-02-11) *
* Copyright (c) Michal Altair Valasek, 2020 *
* www.rider.cz | www.altair.blog *
****************************************************************************/
/* [General] */
inner_diameter = 56;
height = 30;
wall_thickness = 1.67;
@ridercz
ridercz / _rnav.scss
Created January 2, 2020 12:29
Simple SCSS responsive menu
/*
$WidthStop: maximum width for collapsed menu
$Padding: general padding value
$ItemSpacing: spacing between items of horizontal menu
$Color: foreground color
$BackColor: background color
$HoverColor: foreground color for hover state
$HoverBackColor: background color for hover state
$WideAlign content alignment in wide mode
$NarrowAlign: content alignment in narrow mode
@ridercz
ridercz / ExcludeExplicitO365Endpoint.cmd
Created November 18, 2019 16:51
Exclude Office 365 from Outlook 16.0 autodiscovery
@ECHO OFF
REG ADD HKCU\Software\Microsoft\Office\16.0\Outlook\AutoDiscover /v ExcludeExplicitO365Endpoint /t REG_DWORD /d 1 /f /reg:32
REG ADD HKCU\Software\Policies\Microsoft\Office\16.0\Outlook\AutoDiscover /v ExcludeExplicitO365Endpoint /t REG_DWORD /d 1 /f /reg:32
REG ADD HKCU\Software\Microsoft\Office\16.0\Outlook\AutoDiscover /v ExcludeExplicitO365Endpoint /t REG_DWORD /d 1 /f /reg:64
REG ADD HKCU\Software\Policies\Microsoft\Office\16.0\Outlook\AutoDiscover /v ExcludeExplicitO365Endpoint /t REG_DWORD /d 1 /f /reg:64
@ridercz
ridercz / water_mill-side_a.stl
Created September 25, 2019 20:33
Water mill toy 3D model STL
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ridercz
ridercz / water_mill.scad
Last active September 25, 2019 20:33
Water mill toy 3D model OpenSCAD source
/******************************************************************************
* WATER MILL TOY version 1.0 (2019-09-24)
* Copyright (c) Michal Altair Valasek, 2019, licensed under CC BY-NC-SA
* www.rider.cz | www.altair.blog
*****************************************************************************/
/* OSBS:build */ // enable https://github.com/ridercz/OSBS
/* [Common] */
side_width = 100;
@ridercz
ridercz / Program.cs
Created April 11, 2019 00:56
Card printer
using System;
using System.Drawing;
using System.Drawing.Printing;
using System.IO;
using System.Linq;
using System.Threading;
namespace CardPrinter {
class Program {
private const string FOLDER_PATH = @"D:\Downloads\badges\Avers";
@ridercz
ridercz / rotate_splice.scad
Created March 6, 2019 17:56
Limiting angles of rotate_extrude in OpenSCAD 2015.3
intersection() {
rotate_extrude() {
translate([20, 0]) circle(5, $fn = 16);
}
translate([0, 0, -5]) linear_extrude(10) rotate_splice(5, 20, 50);
}
module rotate_splice(count, angle_length, radius) {
for(i = [0:count - 1]) {
angle_begin = 360 / count * i;
@ridercz
ridercz / House-animated.scad
Last active November 14, 2023 01:22
OpenSCAD House
/*****************************************************************************
** OpenSCAD Example Code by Michal Altair Valasek - https://www.rider.cz **
** Licensed under terms of Creative Commons Attribution License (cc-by) **
** https://creativecommons.org/licenses/by/4.0/ **
*****************************************************************************/
base_width = 40; // X
base_depth = 30; // Y
base_height = 20; // Z
wall = 1;