Skip to content

Instantly share code, notes, and snippets.

; Autohotkey v1.1
; ----------------------------------------------------------------
; 1. 기존 윈도우 화살표 키를 Alt + Win + 화살표 키로 이동
; ----------------------------------------------------------------
!#Up::Send #{Up}
!#Down::Send #{Down}
!#Left::Send #{Left}
!#Right::Send #{Right}
; ----------------------------------------------------------------
@overist
overist / inputHandler.js
Last active August 19, 2022 11:06
input handler of "www.acmicpc.net"'s probs using node.js
/*
compability : in case input seperater is [" ", "\n", "n \n v1 v2 v3 v4 \n ..." ]
author : overist
*/
var sep = (require('fs').readFileSync('/dev/stdin').toString().trim().indexOf("\n") !== -1) ? "\n": " ";
var input = require('fs').readFileSync('/dev/stdin').toString().trim().split(sep);
if (input?.[1] && input[1].length > 1) input = input.map(line_set => line_set.split(" "));
// var [n, ...input] = input; // uncomment when you need to seperate quantity
console.log();
@overist
overist / switchWinVirtualDesktop.ahk
Created August 4, 2022 07:42
AutoHotKey script for switching Windows virtual desktop using "WIN+Tab".
#`::Suspend
#Tab::
if (var = -1){
Send ^#{Left}
var := 1
}
else if (var = 1)
{
Send ^#{Right}