Skip to content

Instantly share code, notes, and snippets.

View AlexVagrant's full-sized avatar
:atom:
Focusing

AlexVagrant AlexVagrant

:atom:
Focusing
View GitHub Profile
@AlexVagrant
AlexVagrant / .vimrc
Last active July 2, 2021 04:03
vim8-vimrc
set number
set nobackup
set writebackup " 设置无备份文件
"syntax enable " 语法高亮
syntax on " 开启文件类型侦测
set noeb
set showtabline=1
set ts=2
set softtabstop=2
set shiftwidth=2
@AlexVagrant
AlexVagrant / string-conversion.rs
Created May 16, 2022 10:45 — forked from jimmychu0807/string-conversion.rs
Conversion between String, str, Vec<u8>, Vec<char> in Rust
use std::str;
fn main() {
// -- FROM: vec of chars --
let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}'];
// to String
let string1: String = src1.iter().collect::<String>();
// to str
let str1: &str = &src1.iter().collect::<String>();
// to vec of byte
@AlexVagrant
AlexVagrant / App.js
Created November 29, 2022 17:32 — forked from adilanchian/App.js
Section 5: Update UI + deploy to an Ethereum testnet so anyone on the internet can wave at you using their
import React, { useEffect, useState } from "react";
import { ethers } from "ethers";
import './App.css';
import wavePortal from './utils/WavePortal.json';
const App = () => {
const [currentAccount, setCurrentAccount] = useState("");
const [allWaves, setAllWaves] = useState([]);
const contractAddress = "0xd5f08a0ae197482FA808cE84E00E97d940dBD26E";
@AlexVagrant
AlexVagrant / alacritty-tmux-vim_truecolor.md
Created May 8, 2023 02:53 — forked from andersevenrud/alacritty-tmux-vim_truecolor.md
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh