This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Kotlin/Native Guide</title> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/mithril.min.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/goober.umd.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-kotlin.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -e | |
| # Helper to check if a command exists | |
| command_exists() { | |
| command -v "$1" >/dev/null 2>&1 | |
| } | |
| echo "🔍 Checking dependencies..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # --- Configuration --- | |
| # Set the desired installation path for Homebrew. | |
| # By default, Homebrew installs to /home/linuxbrew/.linuxbrew | |
| # You can change this if you have specific reasons, but be aware of permissions. | |
| # HOMEBREW_PREFIX="/usr/local" # Example: installing to /usr/local, requires sudo for setup | |
| HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew" # Recommended default | |
| # --- Pre-installation Checks --- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import kotlinx.cinterop.* | |
| import raylib.* | |
| import kotlin.random.Random | |
| @OptIn(ExperimentalForeignApi::class) | |
| object Colors { | |
| val BLACK = cValue<Color> { r = 0u; g = 0u; b = 0u; a = 255u } | |
| val WHITE = cValue<Color> { r = 255u; g = 255u; b = 255u; a = 255u } | |
| val GRAY = cValue<Color> { r = 187u; g = 173u; b = 160u; a = 255u } | |
| val DARK_GRAY = cValue<Color> { r = 119u; g = 110u; b = 101u; a = 255u } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- ~/.config/nvim/init.lua | |
| -- Bootstrap lazy.nvim | |
| local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | |
| if not vim.loop.fs_stat(lazypath) then | |
| vim.fn.system({ | |
| "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath | |
| }) | |
| end | |
| vim.opt.runtimepath:prepend(lazypath) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # List of commonly used XFCE plugins/applets | |
| plugins=( | |
| xfce4-whiskermenu-plugin # Modern application menu | |
| xfce4-battery-plugin # Battery monitor | |
| xfce4-weather-plugin # Weather display | |
| xfce4-netload-plugin # Network load monitor | |
| xfce4-cpugraph-plugin # CPU usage graph | |
| xfce4-diskperf-plugin # Disk performance monitor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| !# /usr/bin/bash | |
| bunx puppeteer browsers install [email protected] | |
| # npx or bunx | |
| # or newer version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # --- Prefix Key --- | |
| unbind C-b | |
| set-option -g prefix C-Space | |
| set-option -g status-position top | |
| bind C-Space send-prefix | |
| # --- Window Index Starts at 1 --- | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/bash | |
| # make-snap-apps-visible.sh | |
| sudo cp /var/lib/snapd/desktop/applications/*.desktop /usr/share/applications/ | |
| echo "[DONE] all snap packages visible!" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "core:slice" | |
| import "core:strings" | |
| import rl "vendor:raylib" | |
| main :: proc() { | |
| // Initialize window | |
| rl.InitWindow(1000, 600, "Dropdown List With Shape Names") | |
| defer rl.CloseWindow() |