Skip to content

Instantly share code, notes, and snippets.

View AndreasHnida's full-sized avatar

Anders AndreasHnida

View GitHub Profile
@AndreasHnida
AndreasHnida / uikit3-breakpoints.js
Created March 20, 2024 08:20
Displays a little square in the lower right corner with the current Uikit3 breakpoint the site is on. It reads the breakpoints from CSS, so changes in the builder will be reflected.
document.addEventListener('DOMContentLoaded', function() {
document.body.classList.add('cl1');
function watchBreakpoints() {
const body = document.body;
// Create badge element
const badge = document.createElement('div');
badge.id = 'breakpoint-badge';
@AndreasHnida
AndreasHnida / tmux.conf
Created April 27, 2022 08:39 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
# 0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000