Skip to content

Instantly share code, notes, and snippets.

View Miezhiko's full-sized avatar
👗

Искорка Miezhiko

👗
View GitHub Profile
@Miezhiko
Miezhiko / CustomKeys.txt
Last active March 13, 2023 10:06
CustomKeys.txt
[cmdcancel]
Tip=(|cffffcc00ESC|r) Cancel
Hotkey=512
Buttonpos=3,2
[cmdcancelbuild]
Tip=(|cffffcc00ESC|r) Cancel
Hotkey=512
Buttonpos=3,2
mp3 stop
echo loading config
_snd_mixahead 0.1
ati_npatch 0
bgmvolume 0
MP3Volume 0
fn f() {
let mut c: i64 = 1;
let d: i64 = 2;
let mut x: i64 = 3;
unsafe {
*(&mut x as *mut i64).sub(2) = 42;
}
println!("{c:?} {d:?} {x:?}");
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
use sled;
use {
byteorder::{BigEndian},
zerocopy::{
byteorder::U64, AsBytes, FromBytes, LayoutVerified, Unaligned
}
};
@Miezhiko
Miezhiko / words_counter.rs
Last active June 16, 2020 13:10
Words counter
extern crate unicase;
use std::{
collections::HashMap,
iter::FromIterator,
fs
};
use unicase::Ascii;