Skip to content

Instantly share code, notes, and snippets.

View lazy's full-sized avatar

Ivan Korostelev lazy

View GitHub Profile
class FizzBuzz {
private:
int n;
int next;
mutex m;
map<int, condition_variable*> waiters;
public:
FizzBuzz(int n) {
@lazy
lazy / action_tapping.c
Created August 4, 2021 14:27
My action_tapping.c
#include <stdint.h>
#include <stdbool.h>
#include "action.h"
#include "action_layer.h"
#include "action_tapping.h"
#include "keycode.h"
#include "timer.h"
#ifdef DEBUG_ACTION
# include "debug.h"
@lazy
lazy / init.el
Last active December 15, 2023 05:14
(use-package vertico-posframe
:config
(setq vertico-posframe-parameters
'((left-fringe . 8)
(right-fringe . 8)))
(setq vertico-posframe-border-width 3)
:init
(vertico-posframe-mode)
;;; consult-patch.el --- Consulting completing-read -*- lexical-binding: t -*-
(require 'consult)
;; Stolen from swiper. PR into consult
(defvar-local lazy/prev-position nil)
(defun lazy/consult-maybe-recenter ()
(when lazy/prev-position
(set-window-start (selected-window) lazy/prev-position))
(when (or