This file contains 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
//! Rectangles of every kind! Assumes negative sizes imply that the Rectangle | |
//! was drawn from bottom to top, right to left, or both. | |
use iced::{Point, Rectangle, Size}; | |
/// Creates a `Rectangle` that ensures positive dimensions. | |
/// | |
/// If the size is negative in either direction, it subtracts it from the | |
/// top-left coordinates accordingly and flips it to a positive sign. This way, | |
/// if a rectangle is drawn from bottom-right to top-left, it still results in a |
This file contains 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
use std::{fs::File, sync::Arc}; | |
use tracing::Level; | |
use tracing_subscriber::{ | |
filter::{LevelFilter, Targets}, | |
fmt, | |
prelude::*, | |
}; | |
pub use tracing::{debug, error, info, trace, warn}; |
This file contains 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
use std::borrow::Cow; | |
use std::sync::OnceLock; | |
use iced::font; | |
pub static SANS: Font = Font::new(false); | |
pub static SANS_BOLD: Font = Font::new(true); | |
pub static MONOSPACE: iced::Font = iced::Font::MONOSPACE; | |
pub const ICON: iced::Font = iced::Font::with_name("bootstrap-icons"); |
This file contains 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
// Modified from iced_aw to work with iced master branch (~0.13). This | |
// is provided AS IS—not really tested other than the fact that it compiles | |
// https://github.com/iced-rs/iced_aw/blob/main/src/widgets/split.rs | |
// https://github.com/iced-rs/iced_aw/blob/main/src/style/split.rs | |
// MIT License | |
// Copyright (c) 2020 Kaiden42 | |
// Permission is hereby granted, free of charge, to any person obtaining a copy |
This file contains 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
@-moz-document domain("news.ycombinator.com") { | |
/* Hide karma and points on replies */ | |
span.pagetop #karma, span.comhead span.score { | |
visibility: hidden; | |
position: relative; | |
display: inline-block; | |
height: 10px !important; | |
overflow: hidden; | |
} | |
span.pagetop #karma { |
This file contains 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 | |
# Navigate to home directory | |
cd ~ | |
# Create a 'downloads' directory in the home directory | |
mkdir -p ~/downloads | |
# Navigate to the 'downloads' directory | |
cd ~/downloads |
This file contains 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/ksh | |
# Script to initialize necessary variables to run Oracle 12c - J.K. 01/10/16 | |
# | |
B=`/usr/bin/tput smso` | |
OB=`/usr/bin/tput rmso` | |
ORACLE_SID=NSU12 | |
ORACLE_HOME=/u01/app/oracle/product/19.0.0/client_1 |
This file contains 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
" VIM user interface | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Set 7 lines to the curors - when moving vertical.. | |
set so=4 | |
set ruler "Always show current position | |
set cmdheight=1 "The commandbar height | |
" Set backspace config | |
set backspace=eol,start,indent | |
set whichwrap+=<,>,h,l |
This file contains 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
{ | |
"title": "Citrix Receiver/Workspace shenanigans", | |
"rules": [ | |
{ | |
"description": "In Citrix, change left_option to Alt key via \"⌘⌥ Command (left)-Option\"", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "left_option", | |
"modifiers": { "optional": [ "any" ] } |
NewerOlder