Skip to content

Instantly share code, notes, and snippets.

View morisono's full-sized avatar

morisono

View GitHub Profile
@morisono
morisono / jitai.user.js
Created October 26, 2025 19:59 — forked from obskyr/jitai.user.js
Jitai (字体): A fairly full-featured font randomizer for WaniKani.
// ==UserScript==
// @name Jitai
// @version 1.3.2
// @description Display WaniKani reviews in randomized fonts, for more varied reading training.
// @author Samuel (@obskyr)
// @copyright 2016-2018, obskyr
// @license MIT
// @namespace http://obskyr.io/
// @homepageURL https://gist.github.com/obskyr/9f3c77cf6bf663792c6e
// @icon http://i.imgur.com/qyuR9bD.png
@morisono
morisono / PairingLibs.md
Created October 26, 2025 19:57 — forked from artjomb/PairingLibs.md
List of Pairing Libraries

Pairings can be used for all kinds of advanced cryptographic schemes such as Encryption (Identity-based, Attribute-based, Predicate-based, etc.), Signatures, Zero-Knowledge Proofs, etc. It is in no particular order.

Provides multiple types of Elliptic Curve groups with appropriate pairings on top of them. Code repository resides here.

License: LGPL
Language: C
Thesis: On the Implementation of Pairing-Based Cryptography by Ben Lynn (2007)

@morisono
morisono / Readme.md
Created October 21, 2025 07:19 — forked from gouldingken/Readme.md
circle pack to fill any SVG shape
@morisono
morisono / markdown-parser.ts
Created September 7, 2025 15:18 — forked from wazeerc/markdown-parser.ts
Markdown Parser using remark
//#region: Markdown parsing utils
import rehypeFormat from "rehype-format";
import rehypeStringify from 'rehype-stringify';
import remarkGfm from "remark-gfm";
import remarkParse from 'remark-parse';
import remarkRehype from 'remark-rehype';
import { unified } from 'unified';
export async function parseMarkdown(textToParseIntoMarkdown: string): Promise<unknown> {
const markdownProcessor = unified()
@morisono
morisono / export-pull-request.md
Created August 29, 2025 08:05 — forked from jarnheimer/export-pull-request.md
Guide on how to export a pull request to a file

Export pull request

GitHub

Save a pull request as a pr.diff

curl -H "Accept: application/vnd.github.v3.diff" -u [username]:[personal_access_token] https://api.github.com/repos/[organization]/[repo]/pulls/[pull id] > pr.diff 

Replace

  • username your Github username
@morisono
morisono / medium.user.js
Created August 23, 2025 02:44 — forked from mathix420/medium.user.js
Bypass Medium Paywall - Working late 2023 - Greasy Fork, Violentmonkey, Tampermonkey - Click the RAW button to install
// ==UserScript==
// @name Medium Paywall Bypass
// @namespace Violentmonkey Scripts
// @run-at document-start
// @match *://*.medium.com/*
// @match *://medium.com/*
// @match *://*/*
// @grant none
// @version 2.4
// @inject-into content
@morisono
morisono / 1.srp.py
Created August 18, 2025 05:00
SOLID Principles explained in Python with examples.
"""
Single Responsibility Principle
“…You had one job” — Loki to Skurge in Thor: Ragnarok
A class should have only one job.
If a class has more than one responsibility, it becomes coupled.
A change to one responsibility results to modification of the other responsibility.
"""
class Animal:
def __init__(self, name: str):
@morisono
morisono / README.md
Created August 18, 2025 04:57 — forked from corlaez/README.md
Hexagonal Architecture and Modular Implementation

Hexagonal Architecture

Conceptualized by Alistair Cockburn. Also known as "Ports and Adapters".

In a nutshell:

Application Driver -> Primary Adapter -> Primary Port -> Use Case -> Secondary Port -> Secondary Adapter -> External System/Side Effect
@morisono
morisono / README.md
Created August 18, 2025 04:57 — forked from corlaez/README.md
Hexagonal Architecture and Modular Implementation

Hexagonal Architecture

Conceptualized by Alistair Cockburn. Also known as "Ports and Adapters".

In a nutshell:

Application Driver -> Primary Adapter -> Primary Port -> Use Case -> Secondary Port -> Secondary Adapter -> External System/Side Effect

Hexagonal Architecture Explained

How the Ports & Adapters architecture simplifies your life, and how to implement it

image

Alistair Cockburn

Juan Manuel Garrido de Paz