Skip to content

Instantly share code, notes, and snippets.

View Affonso-Gui's full-sized avatar

Affonso, Guilherme Affonso-Gui

View GitHub Profile
@Affonso-Gui
Affonso-Gui / emacs-keys.md
Created May 1, 2022 07:58
Prof. Inaba emacs cheatsheet

Emacsでよく使うコマンド

by: Prof. Inaba

Ctrl- はコントロールキーを押しながらの意味。 M- はメタキー(Alt, ESC など)を押しながらの意味。

<カーソル移動>

Key Action
Ctrl-b
@Affonso-Gui
Affonso-Gui / guiga_system.rosinstall
Last active October 11, 2022 01:19
Guiga System Rosinstall
- git:
local-name: euslisp/Euslisp
uri: https://github.com/Affonso-Gui/EusLisp.git
version: eus10
- git:
local-name: jsk-ros-pkg/jsk_roseus
uri: https://github.com/Affonso-Gui/jsk_roseus.git
version: eus10
@Affonso-Gui
Affonso-Gui / main.cpp
Created April 30, 2023 01:55
Minimal TYPED_TEST example using gtest and gmock
// In Visual Studio:
// While the builtin Google Test Adapter doesn't support gmock, use the following
// https://www.nuget.org/packages/gmock/1.11.0
#include <list>
#include <gtest/gtest.h>
// Google Test Manual:
// https://github.com/google/googletest/blob/main/docs/advanced.md#typed-tests
@Affonso-Gui
Affonso-Gui / .vsvimrc
Last active March 17, 2024 12:19
VsVim config file
" vim settings
" Settings
" set relativenumber
set incsearch
set ignorecase
set smartcase
set nowrapscan
" set hlsearch
@Affonso-Gui
Affonso-Gui / keyrate.c
Created March 3, 2024 22:10
WinAPI - Change repeat key rate
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
// ref. https://github.com/EricTetz/keyrate
// Compile from Developer PowerShell for VS with:
// cl /Fe$@ /DWIN32_LEAN_AND_MEAN /O1 /Oa /Og /Os /Oy /Oi user32.lib $?
int main(int argc, char* argv[])
{
@Affonso-Gui
Affonso-Gui / subprocess.cpp
Created March 31, 2024 05:56
Creating subprocesses with stdout/stderr redirection using the Windows API (`CreateProcess`)
enum class ExecuteCommandError
{
ErrorNone,
ErrorCreatePipe,
ErrorSetHandleInformation,
ErrorCreateProcess,
};
// ref. https://learn.microsoft.com/en-us/windows/win32/ProcThread/creating-a-child-process-with-redirected-input-and-output
// ref. https://github.com/godotengine/godot/pull/56012