Skip to content

Instantly share code, notes, and snippets.

View casaper's full-sized avatar

Kaspar V. casaper

  • Panter
  • Zürich (Switzerland)
  • 20:43 (UTC +02:00)
  • X @casaper
View GitHub Profile
@casaper
casaper / .editorconfig
Last active September 14, 2023 08:49
Some project starter snippets and templates
# http://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@casaper
casaper / sysinfo.zsh
Last active March 30, 2023 08:49
MacOs system info zsh functions
# The OS is macOS (darwin)
function is_mac() { [[ "$OSTYPE" == darwin* ]]; }
# The OS is macOS (darwin) running on an M1 (arm64) CPU
function is_mac_arm() { is_mac && [[ "$CPUTYPE" == arm64 ]]; }
# The OS is macOS (darwin) running on an Intel (amd64) CPU
function is_mac_intel() { is_mac && [[ "$CPUTYPE" == x86_64 ]]; }
# Does shell env have command
function is_cmd() { command -v "$1" &>/dev/null; }
# timestamp sane for filenames
@casaper
casaper / morveus1.plantuml
Created June 9, 2022 09:13
Morveus Komponenten Diagram 1
@startuml
component Helsana.ch {
component "Antrags-Formular"
component "Warenkorb-FS"
}
[Warenkorb-FS] <.. [LERB-Service] : Hausarzt Informationenen
[Produkt-Preis-Service] ..> [Beratungs-Warenkorb-Service] : Preisinformationen
[PLZ-Service] ..> [Warenkorb-FS] : PLZ / Ort
@casaper
casaper / PictureInSvg.vue
Created April 20, 2018 14:33
Try drawer Querstion
<template>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
:width="`${svgWidth}px`"
:height="`${svgHeight}px`"
:viewBox="viewBox"
@click.stop="drawClick">
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g>
<image
:x="imageX"
@casaper
casaper / SomaFM_All.m3u
Created January 15, 2017 07:33
SomaFM all Channels Playlist
#EXTM3U
#EXTINF:0,Defcon 128 - Seven Inch Soul: Vintage soul tracks from the original 45 RPM vinyl. [SomaFM]
http://ice1.somafm.com/7soul-128-aac
#EXTINF:0,SomaFM: Seven Inch Soul (#2 ): Vintage soul tracks from the original 45 RPM vinyl.
http://ice2.somafm.com/7soul-128-aac
#EXTINF:0,SomaFM: BAGeL Radio (#1 ): What alternative rock radio should sound like.
http://ice1.somafm.com/bagel-128-mp3
#EXTINF:0,SomaFM: BAGeL Radio (#2 ): What alternative rock radio should sound like.
http://ice2.somafm.com/bagel-128-mp3
#EXTINF:0,SomaFM: Beat Blender (#1 ): A late night blend of deep-house and downtempo chill.