Skip to content

Instantly share code, notes, and snippets.

@demig00d
demig00d / guga.css
Last active October 27, 2024 13:20
/* @theme guga */
@import "default";
:root {
font-family: "CMU Sans Serif", "Segoe UI", Helvetica, sans-serif;
--beamer-main: #1f38c5;
--beamer-secondary: #1a1919;
}

Устойчивость аморфного сплава к растрескиванию из-за циклов нагрева-охлаждения определяется комплексом численных характеристик пластичности, связанных как с его способностью к деформации, так и с его термическими свойствами. Среди наиболее важных можно выделить:

Характеристики пластичности:

  • Удлинение до разрыва (Elongation at break): Высокое удлинение до разрыва указывает на большую способность материала к пластической деформации перед разрушением. Это позволяет материалу лучше адаптироваться к напряжениям, возникающим при циклических изменениях температуры.
  • Предел текучести (Yield strength): Хотя высокий предел текучести обычно ассоциируется с прочностью, в контексте термических циклов умеренный предел текучести может быть более благоприятным. Слишком высокий предел текучести может препятствовать релаксации напряжений, возникающих из-за разницы в тепловом расширении.
  • Коэффициент упрочнения (Strain hardening exponent): Эта характеристика описывает, насколько материал упрочняется пр
@demig00d
demig00d / quicksort.py
Created January 24, 2024 06:54
python haskellish none-inplace quicksort
def quicksort(nums):
match nums:
case [head, *tail]:
smaller = quicksort([x for x in tail if x <= head ])
bigger = quicksort([x for x in tail if x > head ])
return smaller + [head] + bigger
case _:
return []
res = quicksort([2,5,6,3,1,6,9])
@demig00d
demig00d / init.lua
Last active January 22, 2023 14:23
astrovim config (~/.config/nvim/lua/user/init.lua)
-- AstroNvim Configuration Table
-- All configuration changes should go inside of the table below
-- You can think of a Lua "table" as a dictionary like data structure the
-- normal format is "key = value". These also handle array like data structures
-- where a value with no key simply has an implicit numeric key
local config = {
-- Configure AstroNvim updates
updater = {
#! /bin/bash
######################################################################
#
# This script generates an SSL certficate for local development. To
# execute the script, run `bash create-dev-ssl-cert.sh`. Sudo is
# needed to save the certificate to your Mac KeyChain. After the cert
# is generated, you can use `HTTPS=true yarn start` to run the web
# server.
#
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
font_family Iosevka
bold_font Iosevka Bold
italic_font Iosevka Italic
if status is-interactive
# Commands to run in interactive sessions can go here
end
zoxide init fish | source
set -g theme_display_git_untracked yes
set -g theme_display_git_ahead_verbose yes
set -g theme_display_hg yes
set -g theme_display_virtualenv no
@demig00d
demig00d / settings.json
Created October 17, 2022 15:16
my vscode config
{
"files.watcherExclude": {
"**/.bloop": true,
"**/.metals": true,
"**/.ammonite": true
},
"editor.fontFamily": "Iosevka",
"editor.fontLigatures": true,
"editor.formatOnSave": true,
"debug.console.fontFamily": "Iosevka",
import zio.*
import java.time.Instant
case class AuthToken(value: String, expiration: Instant):
def isExpired(now: Instant): Boolean = expiration.isBefore(now)
object Token:
val empty = AuthToken("", Instant.EPOCH)

stateDiagram-v2 User --> InputHandler InputHandler --> Command Command --> CommandHandler CommandHandler --> BotState BotState --> CommandHandler CommandHandler --> Action Action --> ActionHandler ActionHandler --> BotState ActionHandler --> User