Skip to content

Instantly share code, notes, and snippets.

@remlapmot
remlapmot / markdown.snippets
Last active August 24, 2022 09:37
Markdown (and in effect R Markdown) code snippets file for RStudio; file location on Windows: %appdata%\RStudio\snippets; on Mac/Linux: ~/.config/rstudio/snippets
snippet [
[${1:label}](${2:location})
snippet ![
![${1:label}](${2:location})
snippet r
```{r}
${0}
```
@remlapmot
remlapmot / r.snippets
Last active September 26, 2023 15:09
R code snippets file for RStudio; file location on Windows: %appdata%\RStudio\snippets ; on Mac/Linux: ~/.config/rstudio/snippets
snippet lib
library(${1:package})
snippet req
require(${1:package})
snippet src
source("${1:file.R}")
snippet ret
@remlapmot
remlapmot / sizer.xml
Last active March 23, 2020 18:22
Sizer 4.0 http://www.brianapps.net/sizer4 Hot Keys for a 4K monitor with Windows Taskbar on the left of the screen. File location %appdata%\Sizer4\sizer.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<sizer>
<options showIconInTray="1" startInSafeMode="0" adjustOppositeEdge="0" tooltipOption="1" hotKey="90" hotKeyModifiers="10" hotKeyExtended="0" useDwmExtendedFrames="1"/>
<menu>
<resize description="1584 x 2160 Right" hotKey="39" hotKeyModifiers="9" hotKeyExtended="1" width="1584" height="2160" relocate="6" monitor="-2" top="" left="" noresize="0" relocateCoords="1"/>
<resize description="2160 x 2160 Left" hotKey="37" hotKeyModifiers="9" hotKeyExtended="1" width="2160" height="2160" relocate="4" monitor="-2" top="" left="" noresize="0" relocateCoords="1"/>
<resize description="TwoThirdsLeft" hotKey="37" hotKeyModifiers="3" hotKeyExtended="1" width="2498" height="2160" relocate="4" monitor="-2" top="" left="" noresize="0" relocateCoords="1"/>
<resize description="TwoThirdsRight" hotKey="39" hotKeyModifiers="3" hotKeyExtended="1" width="2498" height="2160" relocate="6" monitor="-2" top="" left="" noresize="0" relocateCoords="1"/>
<resize de
@remlapmot
remlapmot / text-preview.bat
Last active February 14, 2022 10:41
Batch file adding file extensions to use the text previewer (in Windows Explorer and Outlook)
rem Windows batch file adding file extensions to use the text previewer in Windows Explorer and Outlook (and other programs)
for %%x in (
.do
.ado
.log
.smcl
.rmd
.md
.markdown
@remlapmot
remlapmot / capslock-to-shift.ahk
Last active October 8, 2019 08:04
AutoHotkey script to remap Caps Lock to Shift
Capslock::Shift
@remlapmot
remlapmot / autohotkey-commands.ahk
Last active October 9, 2019 08:28
Collection of useful AutoHotkey commands
; Uncomment to monitor which key has been pressed (when running script but not compiled script)
; #InstallKeybdHook
; Press ` (accent grave/backtick) to move up a folder in Explorer in Windows 10 (on an ISO UK keyboard)
#IfWinActive ahk_class CabinetWClass
SC029::
SendInput, {LAlt down}
sleep, 1
SendInput, {Up}
sleep, 1
Capslock::`
+Capslock::~
Capslock::Shift
+Capslock::Send, % Chr(163)
@remlapmot
remlapmot / settings.json
Created January 19, 2020 13:39
VS Code User Settings
{
"workbench.sideBar.location": "right",
"workbench.iconTheme": "vscode-icons",
"editor.fontFamily": "Fira Code Light",
"editor.fontLigatures": true,
"latex-workshop.view.pdf.viewer": "tab",
"editor.minimap.enabled": false,
"editor.wordWrap": "on",
"breadcrumbs.enabled": true,
"editor.fontSize": 11,
@remlapmot
remlapmot / settings.json
Last active June 27, 2020 16:35
Windows Terminal settings file
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"confirmCloseAllTabs": false,
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",