Skip to content

Instantly share code, notes, and snippets.

View riotrah's full-sized avatar
:shipit:
[REDACTED]

Rayat Rahman riotrah

:shipit:
[REDACTED]
View GitHub Profile
@riotrah
riotrah / capslock-hyper-vim.ahk
Last active August 7, 2022 05:48
Windows AutoHotKey (AHK) Script to make a hyper key out of CapsLock. Supports arbitrary modifiers! Defaults to vim-ish nav controls + others.
;; #Warn ; Enable warnings to assist with detecting common errors.
#NoEnv ; recommended for performance and compatibility with future autohotkey releases.
#UseHook
#InstallKeybdHook
#SingleInstance force
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SendMode Input
;; If the script is not elevated, relaunch as administrator and kill current instance
;; This allows us to use the hyper key in admin applications.
@riotrah
riotrah / secretary.clj
Created June 20, 2022 18:13
clj-kondo hook for clj-commons.secretary.core/defroute
(ns clj-kondo.clj-commons.secretary
(:require
[clj-kondo.hooks-api :as api]
[clojure.string :as str]))
#_{:clj-kondo/ignore [:clojure-lsp/unused-public-var]}
(defn defroute
@riotrah
riotrah / Vendor.js
Created April 26, 2019 02:08
Rooms Vendor Class
import Joi from 'joi';
import moment from 'moment';
import 'moment-round';
import { isNumber } from 'util';
import { searchRequestSchema } from './../lib/models/index';
import { ValidationError } from './../lib/utils/Errors';
import log from './../lib/utils/logger';
export default class Vendor {
constructor(db, mq) {