Skip to content

Instantly share code, notes, and snippets.

View ShintaroOba's full-sized avatar
🏝️
Surf'n Turf

ShintaroOba

🏝️
Surf'n Turf
View GitHub Profile
@ShintaroOba
ShintaroOba / from.rs
Last active January 24, 2026 07:56
[Rust] How to implement From trait
public struct KeyEvent {
pub code: KeyCode,
pub modifiers: KeyModifiers
}
impl KeyEvent {
pub const fn new(code: KeyCode, modifiers: KeyModifiers)-> KeyEvent {
KeyEvent {
code,
modifiers
@ShintaroOba
ShintaroOba / ghq-tips.md
Last active June 15, 2022 01:43
Super convenient github-repo management method for windows!

Super convenient github-repo management method for windows!

About

Tips for convenient github repo management tip for windows. You can access any repository and open vscode immediately by gcode command.

install go

https://go.dev/doc/install

install chocolately