Skip to content

Instantly share code, notes, and snippets.

View RW21's full-sized avatar
🆒

RW21 RW21

🆒
View GitHub Profile
@RW21
RW21 / brave_arrow_vim_navigate.js
Created June 24, 2022 05:54
brave_arrow_vim_navigate
// ==UserScript==
// @name Brave search arrow navigation
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Navigate in Brave search using arrow or vim keys.
// @author rw21
// @match https://search.brave.com/search?*
// @icon https://cdn.search.brave.com/serp/v1/static/brand/7aad80c1b58c70bab482ce1e3c4e332fba2eab52180bfca5b012b571a31d2696-brave-logo-small.svg
// @grant none
// ==/UserScript==
@RW21
RW21 / 500
Created October 1, 2020 07:51
500
test
(define (evens-only*&co l col)
(cond
[(null? l) (col '() 1 0)]
[(atom? (car l)) (cond
[(even? (car l)) (evens-only*&co (cdr l)
(lambda (newl p s)
(col (cons (car l) newl)
(* (car l) p)
s)))]