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 / 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 / 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 / MagClasp.scad
Created April 4, 2020 19:56
MagClasp - SCAD
/*****************************************************************************
* PARAMETRIC MAGNETIC CLASP for protective mask version 1.1.0 (2020-03-30) *
* ------------------------------------------------------------------------- *
* Copyright (c) Michal Altair Valasek, 2020 - Licensed under CC BY-NC-SA *
* www.rider.cz * www.altairis.cz * www.altair.blog *
*****************************************************************************/
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.");
/* [Parameters] */
inner_diameter_a = 20;
opening_angle_a = 60;
inner_diameter_b = 22;
opening_angle_b = 110;
height = 20;
wall_thickness = 2.49; // 6 perimeters of 0.4 mm nozzle
/* [Hidden] */
$fn = 64;
@ridercz
ridercz / nazor.scad
Created October 17, 2020 11:29
Děkujeme za názor a tady máte klíčenku
// For more information about this code (in Czech) see
// https://www.altair.blog/2019/11/layered-text
/* [Base] */
base_color = "#333333";
base_paddding = 2;
base_height = 2;
/* [Text layers] */
layer_heights = [1, 1];
@ridercz
ridercz / recept.md
Created December 5, 2020 15:07
Recept na plněné ořechy

Recept na plněné ořechy

Těsto

  • 14 dkg cukru moučky
  • 30 dkg hladké mouky
  • 8 dkg mletých ořechů (mandle, lískové, vlašské
  • 21 dkg másla
  • 1 žloutek
  • 2 lžičky kakaa (volitelně)
@ridercz
ridercz / vzpera.scad
Created January 14, 2021 01:17
Vzpěra na židli
include <A2D.scad>; // https://github.com/ridercz/A2D
assert(a2d_required([1, 6, 0]), "Please upgrade A2D library to version 1.6.0 or higher.");
/* [General] */
height = 15;
main_hole_size = [35.5, 42.5];
prop_hole_size = [40, 15];
wall_thickness = 6;
radius = 3;
@ridercz
ridercz / KurzyCnb.cs
Last active February 15, 2021 13:09
Class to process exchange rates of Czech National Bank (CNB), including historic data and sample console application.
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Globalization;
using System.Net;
using System.Threading.Tasks;
namespace Altairis.KurzyCnb {
class Program {
static void Main(string[] args) {
@ridercz
ridercz / Altair-General.snippet
Created September 30, 2021 13:38
Visual Studio Code Snippets
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Insert input model subclass</Title>
<Author>Michal A. Valasek</Author>
<Shortcut>imodel</Shortcut>
</Header>
<Snippet>
<Code Language="csharp" Delimiter="$"><![CDATA[[BindProperty]
@ridercz
ridercz / privesky.scad
Created October 2, 2021 12:10
Generování přívěšků s čísly
/* [Tag options] */
diameter = 30;
thickness = 2;
extrusion = 1;
rim_width = 1.67;
hole_diameter = 4;
/* [Plater options] */
tag_start_number = 1;
tag_rows = 6;