Skip to content

Instantly share code, notes, and snippets.

View Jerror's full-sized avatar

Jeremiah O'Neil Jerror

  • University of Ottawa
  • Ottawa, ON, Canada
View GitHub Profile
@Jerror
Jerror / gist:07fda355b968ade205401546da40f8c5
Created December 15, 2020 00:59
tridactyl viewconfig 2020/12/14
data:application/json,{"configversion":"2.0","subconfigs":{"www.google.com":{"followpagepatterns":{"next":"Next","prev":"Previous"}},"^https://web.whatsapp.com":{"nmaps":{"f":"hint -c [tabindex]:not(.two)>div,a","F":"hint -bc [tabindex]:not(.two)>div,a"}}},"priority":0,"exmaps":{"<Enter>":"ex.accept_line","<C-Enter>":"ex.execute_ex_on_completion","<C-j>":"ex.accept_line","<C-m>":"ex.accept_line","<Escape>":"ex.hide_and_clear","<C-[>":"ex.hide_and_clear","<ArrowUp>":"ex.prev_history","<ArrowDown>":"ex.next_history","<S-Del>":"ex.execute_ex_on_completion_args tabclose","<A-b>":"text.backward_word","<A-f>":"text.forward_word","<C-a>":"text.beginning_of_line","<C-e>":"text.end_of_line","<A-d>":"text.kill_word","<S-Backspace>":"text.backward_kill_word","<C-u>":"text.backward_kill_line","<C-k>":"text.kill_line","<C-c>":"text.kill_whole_line","<C-f>":"ex.complete","<Tab>":"ex.next_completion","<S-Tab>":"ex.prev_completion","<Space>":"ex.insert_space_or_completion","<C-o>yy":"ex.execute_ex_on_completion_args clipboar
@Jerror
Jerror / main.cpp
Created June 6, 2018 01:01
Simple optional chaining
#include <cstring>
#include <optional>
using namespace std;
const int A = 4;
const int B = 6;
const int CD = 8;
const int E = 6;
optional<int> fa(int a)