Skip to content

Instantly share code, notes, and snippets.

View kaave's full-sized avatar

Kyousuke Abe kaave

View GitHub Profile
@kaave
kaave / convertScrapboxToMarkdown.ts
Last active August 9, 2021 07:05
Scrapbox のバックアップ json から Markdown を作成
import scrapboxData from '../scrapbox.json';
import fs from 'fs-extra';
import path from 'path';
const distPath = path.join(process.cwd(), 'dist');
async function main() {
fs.mkdirp(distPath);
scrapboxData.pages.forEach(page => {
@kaave
kaave / example.ts
Last active September 25, 2021 16:06
My Branded Type Pattern
import * as Hex from './hex';
const red = Hex.create('#f00');
const nonBrandedRed = '#f00';
function stdoutOnlyHex(hex: Hex) {
console.log(hex);
}
stdoutOnlyHex(red);
:root {
--height-header: 10rem;
--width-left: 20rem;
--color-fg: #24292f;
--color-canvas-sub: #f6f8fa;
--color-code: #cf222e;
}
html {
font-size: 62.5%;
@kaave
kaave / devcontainer.json
Created June 30, 2023 01:08
[Draft] My .devcontainer
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu
{
"name": "Ubuntu",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:jammy",
"features": {
// Programming languages
"ghcr.io/devcontainers/features/node:1": {
"nodeGypDependencies": true,