Skip to content

Instantly share code, notes, and snippets.

View wakinchan's full-sized avatar
👻
working

Yusuke KUROIWA wakinchan

👻
working
View GitHub Profile
@wakinchan
wakinchan / tampermonkey-split-horizontally-for-mermaid.js
Last active January 28, 2022 03:56
Tampermonkey script: Split the Mermaid preview horizontally for notion
// ==UserScript==
// @name Split horizontally for Mermaid
// @namespace https://twitter.com/wa_kinchan
// @version 0.2
// @description Split horizontally when editing Mermaid
// @author @wa_kinchan
// @match https://www.notion.so/*/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=notion.so
// @grant none
// ==/UserScript==
@wakinchan
wakinchan / generate-target-dependencies.sh
Last active February 29, 2024 13:14
Generate Target Dependencies for Package.swift
#!/usr/bin/env sh
# usage: sh ./generate-target-dependencies.sh | dot -Tsvg -o target-graph.svg
packages=`swift package describe --type json`
targets=`echo $packages | jq '.targets'`
target_names=`echo $targets | jq -r '.[] | .name'`
body=""
template=`cat <<EOF
digraph DependenciesGraph {