Skip to content

Instantly share code, notes, and snippets.

@cademcniven
cademcniven / cetch.js
Created July 26, 2022 17:25
Unfinished code for a fetch wrapper with caching
class Cetch {
static MAX_CACHE_SIZE
static CACHE_VERSION
static CACHE_PREFIX
static CACHE_NAME
static MAX_CACHE_SIZE
static STATIC_ASSETS
constructor() {
this.MAX_CACHE_SIZE = 0
@cademcniven
cademcniven / Yomichan Handlebars v2.4
Last active January 31, 2023 21:53
Yomichan handlebars for use with Eminent Note Type V2.4
{{#*inline "glossary-single"}}
{{~#unless brief~}}
{{~#scope~}}
{{~#set "any" false}}{{/set~}}
{{~#each definitionTags~}}
{{~#if (op "||" (op "!" @root.compactTags) (op "!" redundant))~}}
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
{{name}}
{{~#set "any" true}}{{/set~}}
{{~/if~}}
@cademcniven
cademcniven / YomichanAnkiTemplate.txt
Last active July 10, 2021 18:55
Yomichan Anki card template
{{#*inline "glossary-single"}}
{{~#unless brief~}}
{{~#scope~}}
{{~#set "any" false}}{{/set~}}
{{~#each definitionTags~}}
{{~#if (op "||" (op "!" @root.compactTags) (op "!" redundant))~}}
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
{{name}}
{{~#set "any" true}}{{/set~}}
{{~/if~}}
@cademcniven
cademcniven / copy-of-kanji-deck.ipynb
Created February 28, 2021 17:46
Copy of kanji deck.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cademcniven
cademcniven / index.html
Created October 29, 2017 02:47
New startpage
<link href="https://fonts.googleapis.com/earlyaccess/mplus1p.css" rel="stylesheet" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/font-hack/2.020/css/hack.min.css">
<div class= "wrapper">
<div class="big-image">
<div id="text">
<p id="reddit">
<a href="https://www.reddit.com/r/all/">ミーム</a>