This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class FizzBuzz { | |
private: | |
int n; | |
int next; | |
mutex m; | |
map<int, condition_variable*> waiters; | |
public: | |
FizzBuzz(int n) { |