Skip to content

Instantly share code, notes, and snippets.

View VladislavSmolyanoy's full-sized avatar
🥷
Pushing the boundaries!

Vladislav Smolyanoy VladislavSmolyanoy

🥷
Pushing the boundaries!
View GitHub Profile
@VladislavSmolyanoy
VladislavSmolyanoy / zip_benchmark.sh
Created May 6, 2025 17:02
Zip Archiving Utilities Benchmark (incl. password)
#!/usr/bin/env bash
# zip_benchmark.sh — v2025‑05‑06  (quiet‑safe)
#
# Same purpose as previous version but now detects whether `zipcloak`
# supports `-q` (quiet). On macOSʼs default Info‑ZIP 3.0 the flag does
# **not** exist, so we omit it to avoid exit‑16 errors.
#
# ‣ Speed ranking
# ‣ Size ranking
# ‣ Efficiency (MiB × s)
@VladislavSmolyanoy
VladislavSmolyanoy / Button.swift
Last active March 31, 2025 04:52
Pretty Button Styling for macOS Apps (from SwiftyLaunch)
// Source: SwiftyLaunch
import SwiftUI
let commonButtonRadius = 7.5
let commonButtonHeight = 35.0
let commonButtonFontStyle: Font = .system(.title3, weight: .semibold)
public struct CTAButtonStyle: ButtonStyle {
private let disabled: Bool
@VladislavSmolyanoy
VladislavSmolyanoy / Country.ts
Created October 10, 2024 13:40
Typescript Countries String Union Type
export type Country =
| "United States"
| "Germany"
| "United Kingdom"
| "India"
| "France"
| "Italy"
| "Australia"
| "Russian Federation"
| "Afghanistan"