Skip to content

Instantly share code, notes, and snippets.

View riez's full-sized avatar
:octocat:
Focusing

Farrizal Alchudry Mutaqien riez

:octocat:
Focusing
View GitHub Profile
@riez
riez / async_graphql 7.0.16 - broken graphiql v2 workarround.md
Created May 8, 2025 15:05
async_graphql 7.0.16 - broken graphiql v2 workarround

async-graphql GraphiQL Workaround

Problem

The latest version of async-graphql's GraphiQL integration is currently broken. This issue appears to be related to React version compatibility problems in the default GraphiQL implementation.

Dependencies used:

[dependencies]
@riez
riez / chunking_sqlite_benchmark_test.go
Created April 10, 2025 09:04
Chunking Benchmark on SQLite. Case when trying improving the throughput on blockqueue
package blockqueue
import (
"context"
"fmt"
"os"
"testing"
"time"
"github.com/google/uuid"
@riez
riez / vite.config.ts
Last active March 17, 2021 15:30
Final vite.config.ts
import { extname } from "path";
import { createFilter } from "@rollup/pluginutils";
import image from "@rollup/plugin-image"
import svelteSVG from "rollup-plugin-svelte-svg";
const mode = process.env.NODE_ENV;
const dev = mode === "development";
const svgPlugin = svelteSVG({ dev });
const origSvgPluginTransform = svgPlugin.transform;
const filter = createFilter();
@riez
riez / vite.config.ts
Last active March 17, 2021 15:30
vite config rollup svg
const svgPlugin = svelteSVG({ dev });
const origSvgPluginTransform = svgPlugin.transform;
const filter = createFilter();
svgPlugin.transform = (source, id) => {
if (!filter(id) || extname(id) !== ".svg") {
return null;
}
// @rollup/plugin-image the code that this plugin generate
// is looks like
// var img = ".."; export default img;