Skip to content

Instantly share code, notes, and snippets.

View jleem99's full-sized avatar
🎯
Focusing

JongHan Leem jleem99

🎯
Focusing
View GitHub Profile
@jleem99
jleem99 / generate-barrels.sh
Created August 5, 2024 03:12
A Bash script to generate and format barrel files (index.ts) for TypeScript projects. It recursively scans directories for TypeScript files, creates export statements for default and named exports, and formats the output using Prettier if available.
#!/bin/bash
MAXDEPTH=${MAXDEPTH:-1}
BARREL_NAME=index.ts
CWD="$(pwd)"
set -e
IFS=$'\n'
function generate_barrels { (
@jleem99
jleem99 / README.md
Last active September 27, 2024 11:32
Bash script that enables Metal API for League of Legends on macOS

Bash script that enables Metal API for League of Legends on macOS.

After installing League of Legends, you can run this script to enable Metal API for the game.
You can expect a performance boost of up to ~2x FPS.

How to run

To run the script, download the script and run it in Terminal.
Or, open Terminal and type the following command:

@jleem99
jleem99 / .clang-format
Created May 20, 2022 18:17 — forked from gelldur/.clang-format
My clang format file. In sample.cpp is sample output
# Checkout config tool: https://zed0.co.uk/clang-format-configurator/
# Or http://cf.monofraps.net/
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# https://github.com/01org/parameter-framework/blob/master/.clang-format
# Tested on: clang-format version 6.0.1
# Common settings
BasedOnStyle: WebKit