Skip to content

Instantly share code, notes, and snippets.

View zb-sj's full-sized avatar

Jeong, Sejun zb-sj

View GitHub Profile
@zb-sj
zb-sj / extract-babylon-material.sh
Last active July 1, 2024 05:30
Extract .babylon materials to each json file
#!/bin/bash
FILE_PATH="*.babylon"
TEXTURE_OUT="./textures/"
JSON_OUT="./"
# Ensure FILE_PATH and TEXTURE_OUT are defined
if [[ -z "$FILE_PATH" || -z "$TEXTURE_OUT" ]]; then
echo "FILE_PATH and TEXTURE_OUT must be set."
exit 1
@zb-sj
zb-sj / lambda.ts
Created May 2, 2024 00:52
ApproximateReceiveCount limit on SqsPartialBatch
// implementation poc for https://github.com/middyjs/middy/issues/1206
const approximateReceiveLimit = 3;
export const handler = middy<SQSEvent>
// ...
.use({
/**
* Filter out messages that have been retried 3 times
*
@zb-sj
zb-sj / Injector.tsx
Last active April 5, 2024 17:02
storybook-invoke-addon idea
import React, { useEffect, useState } from 'react';
import { useArgs, useArgTypes } from '@storybook/manager-api';
import { ArgTypes } from '@storybook/types';
import { CONTROL_TYPE, DOCBLOCK_ARGSTABLE_SELECTOR, PANEL_TAB_CONTENT_ID } from '../constants';
import { InvokerControlInjector } from './InvokerControlInjector';
export function Injector() {
const [args] = useArgs();
const argTypes = useArgTypes();