Skip to content

Instantly share code, notes, and snippets.

View ammein's full-sized avatar

Amin Shazrin ammein

  • Dassault Systemes
  • Malaysia
  • X @ammein
View GitHub Profile
@ammein
ammein / lygia.sh
Last active October 20, 2025 16:06
Lygia Bash Script
#!/bin/bash
# A helper to add/update lygia to your project
# Author: Amin Shazrin
# Flexible Values that suits to your needs...
lygia_folder_name="lygia"
default_lygia_path="./terminal-glsl"
prune_file="prune.py"
path=$1
@ammein
ammein / settings.json
Created September 22, 2025 07:57
VSCode TailwindCSS Regex
{
"tailwindCSS.experimental.classRegex": [
"tw`([^`]*)",
"tw\\.[^`]+`([^`]*)`",
"tw\\(.*?\\).*?`([^`]*)",
// wrapperClass with double quotes (multi-line safe)
"wrapperClass=\\{\\\"([\\s\\S]*?)\\\"\\}",
// wrapperClass with single quotes (multi-line safe)
"wrapperClass=\\{'([\\s\\S]*?)'\\}",
// wrapperClass with template literals (captures only static text, multi-line safe)
const ReactRefreshPlugin = require("@pmmmwh/react-refresh-webpack-plugin");
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
module.exports = {
webpack: {
plugins: {
remove: ['ReactRefreshPlugin'],
add: [
new ReactRefreshPlugin({
exclude: [/^http.*/, /node_modules/],
@ammein
ammein / Hyper Configurations
Last active May 16, 2019 22:13
This is for Hyper Configurations and Custom Choose Terminal for windows
// In .hyper.js
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// choose either `'stable'` for receiving highly polished,
// or `'canary'` for less polished but more frequent updates
updateChannel: 'stable',