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
| -- ============================================================================= | |
| -- lightline to lualine theme converter | |
| -- Author: shadman | |
| -- License: MIT License | |
| -- ============================================================================= | |
| -- Instructions | |
| -- 1. Source this file in neovim with lightline installed | |
| -- 2. execute :lua light2lualine_theme_converter('theme_name') |
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
| # This isn't meant to be a fully featured implementation. It's just a small playground project. | |
| # Use `cmake -Bbuild -S. -GNinja` to generate the project | |
| # Then use `cmake --build build --target package` to generate a .appimage file ready to go | |
| # This project DOES do dangerous things and tries to download the linuxdeploy tool directly. | |
| # When this makes it into IXM, it will be expected that users have the linuxdeploy tool installed to *some* location. | |
| # It will NOT download and execute something from the internet. | |
| cmake_minimum_required(VERSION 3.16) | |
| project(summon-test LANGUAGES CXX VERSION 0.1.0) | |
| add_executable(app) |
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
| #include <climits> | |
| #include <cmath> | |
| #include <fstream> | |
| #include <iostream> | |
| #include <limits> | |
| #include <utility> | |
| #include <vector> | |
| // IEEE 754 does not specify endianess (https://en.wikipedia.org/wiki/Endianness#Floating_point). | |
| // So, to have a portable representation, we can "decompose" the floating-point value using frexp(). |
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
| { | |
| "configurations": [ | |
| { | |
| "environments": [ | |
| { | |
| "MINGW64_ROOT": "C:\\msys64\\mingw64", | |
| "BIN_ROOT": "${env.MINGW64_ROOT}\\bin", | |
| "FLAVOR": "x86_64-w64-mingw32", | |
| "TOOLSET_VERSION": "7.3.0", | |
| "INCLUDE": "${env.MINGW64_ROOT}\\include\\c++\\${env.TOOLSET_VERSION};${env.MINGW64_ROOT}\\include\\c++\\${env.TOOLSET_VERSION}\\tr1;${env.MINGW64_ROOT}\\include\\c++\\${env.TOOLSET_VERSION}\\${env.FLAVOR}", |
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 | |
| # | |
| # rotate_desktop.sh | |
| # | |
| # Rotates modern Linux desktop screen and input devices to match. Handy for | |
| # convertible notebooks. Call this script from panel launchers, keyboard | |
| # shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.). | |
| # | |
| # Using transformation matrix bits taken from: | |
| # https://wiki.ubuntu.com/X/InputCoordinateTransformation |