Skip to content

Instantly share code, notes, and snippets.

Avatar
🐰
Working

Sung M. Kim dance2die

🐰
Working
View GitHub Profile
@dance2die
dance2die / 1. TL;DR.md
Last active Jun 20, 2022
A new INK project with "create-ink-app"
View 1. TL;DR.md

Set up an INK project

# Create a folder
mkdir ink3

# Go to the folder
cd ink3

# Create the ink project
@dance2die
dance2die / 01 - autoguluon.md
Last active Jun 5, 2022
AWS autoguluon setup troubleshoot
View 01 - autoguluon.md

Installation with official doc

https://auto.gluon.ai/stable/index.html#

pip3 install -U pip
pip3 install -U setuptools wheel

# CPU version of pytorch has smaller footprint - see installation instructions in
# pytorch documentation - https://pytorch.org/get-started/locally/
View tailwind.config.js
/* eslint-disable @typescript-eslint/no-var-requires */
const { BlockList } = require("net");
const twColors = require("tailwindcss/colors");
const defaultTheme = require("tailwindcss/defaultTheme");
/**
* Material Design breakpoints
* @see https://material.io/design/layout/understanding-layout.html#layout-anatomy
* @see https://tailwindcss.com/docs/breakpoints
*/
@dance2die
dance2die / Conditional.md
Created Feb 16, 2022
Clean Coding Practice - Self Note to track my thoughts.
View Conditional.md
  1. Compare numbers in a sequence. e.g.
# ok
3 > 2 > 1
1 < 2 < 3
# not
1 < 3 > 2
# not
View Invert Wacom stylus on Ubuntu.sh
#https://unix.stackexchange.com/a/377601/334761
# Get the device id with "xinput"
# Look for "Wacom Intuos PT S Pen stylus"
# Get the ID value. e.g.) id=14
# pass the ID (14 for mine) as "device" in
# xinput MAN page: https://linux.die.net/man/1/xinput
xinput set-prop 14 "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
# default
@dance2die
dance2die / youtube.com.js
Last active Sep 21, 2021
Add a button on "Subscriptions" panel on Youtube.com
View youtube.com.js
let bt = document.createElement('button')
bt.appendChild(document.createTextNode('Close'))
bt.addEventListener('click', function(e) {
this.parentElement.style.display = 'none';
});
// Subscriptions panel
let subEl = document.querySelector("#sections > ytd-guide-section-renderer:nth-child(2)")
subEl.prepend(bt)
@dance2die
dance2die / .prettierrc
Created Jun 25, 2021
Prettier configuration, .prettierc for typescript
View .prettierrc
{
"arrowParens": "always",
"bracketSpacing": true,
"embeddedLanguageFormatting": "auto",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 100,
"proseWrap": "preserve",
@dance2die
dance2die / Blog - Adding Tailwind CSS for Docusaurus.md
Last active Aug 24, 2021
Blogs before migration to Next.js from Gatsby.js
View Blog - Adding Tailwind CSS for Docusaurus.md
title date
How to add Tailwind CSS for Docusaurus
2021-06-22

Steps

  1. Install Docusaurus
    • npx @docusaurus/init@latest init site-name class
@dance2die
dance2die / Move.sh
Created Apr 30, 2021
Move Ubuntu Unity Docks
View Move.sh
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position TOP
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position RIGHT
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position LEFT