Skip to content

Instantly share code, notes, and snippets.

@ziteh
ziteh / b.jl
Created December 16, 2022 05:18
View b.jl
using Plots
function calcDisp(Vi, deg, t, b)
m = 5.19
n = 2
G = 9.8
θ = deg * pi / 180
Vt = (m * G / b)^(1 / n)
Vxi = Vi * cos(θ)
@ziteh
ziteh / bom2grouped_csv_jlcpcb.xsl
Last active November 23, 2022 15:04 — forked from arturo182/bom2grouped_csv_jlcpcb.xsl
A KiCad BOM script for generating JLCPCB PCBA-compatible files!
View bom2grouped_csv_jlcpcb.xsl
<!--XSL style sheet to convert EESCHEMA XML Partlist Format to grouped CSV BOM Format
Copyright (C) 2014, Wolf Walter.
Copyright (C) 2013, Stefan Helmert.
Copyright (C) 2018, Kicad developers.
Copyright (C) 2019, arturo182.
Copyright (C) 2022, ZiTe.
GPL v2.
Functionality:
Generation of JLCPCB PCBA compatible BOM
@ziteh
ziteh / jlcpcb_1oz_1-2layer.kicad_dru
Last active November 23, 2022 15:27
KiCad custom rules for JLCPCB
View jlcpcb_1oz_1-2layer.kicad_dru
##############################
# MIT License
#
# Copyright (c) 2022 ZiTe
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@ziteh
ziteh / luna_pinyin.custom.yaml
Last active September 14, 2020 08:37 — forked from lotem/luna_pinyin.custom.yaml
【朙月拼音】模糊音定製模板-ZiTe自訂版
View luna_pinyin.custom.yaml
# luna_pinyin.custom.yaml
#
# 【朙月拼音】模糊音定製模板-ZiTe自訂版
# 佛振配製 :-)
# ZiTe修改(Forked from https://gist.github.com/lotem/2320943)
#
# 位置:
# ~/.config/ibus/rime (Linux)
# ~/Library/Rime (Mac OS)
# %APPDATA%\Rime (Windows)
@ziteh
ziteh / GPIO_Functions.c
Created July 3, 2020 14:28
STM32 GPIO Functions
View GPIO_Functions.c
/**
******************************************************************************
* @file GPIO_Functions.c
* @author ZiTe
* @version V1.0.1
* @date 08-October-2019
* @brief GPIO functions program
******************************************************************************
* @attention
@ziteh
ziteh / (edited)rules.mk
Last active June 21, 2020 03:26
DIY QMK Keyboard
View (edited)rules.mk
# MCU name
MCU = atmega32u4
# Processor frequency.
# This will define a symbol, F_CPU, in all source code files equal to the
# processor frequency in Hz. You can then use this symbol in your source code to
# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
# automatically to create a 32-bit value in your source code.
#
# This will be an integer division of F_USB below, as it is sourced by