Skip to content

Instantly share code, notes, and snippets.

View piouson's full-sized avatar
🏠
Working from home

piouson

🏠
Working from home
View GitHub Profile
@piouson
piouson / singleton.ts
Created April 16, 2024 10:29
Typescript Singleton function with code splitting
type Singleton = {
done(): void;
};
type SingletonContructor = {
new (): Singleton;
(): Singleton;
staticDone(): void;
};
@piouson
piouson / html_list_groups.md
Created May 4, 2022 09:40
Semantic HTML groupings of <li> lists

A few approaches on grouping HTML lists..

For listbox (popup) similar to <select>:

<div role="menu">
  <ul role="group">
    <li role="option">...</li>
    <li role="option">...</li>
  </ul>
 
@piouson
piouson / mini-web-dev-roadmap.md
Last active November 23, 2024 13:18
This is a mini web development roadmap to help a complete beginner get their first frontend developer job.
@piouson
piouson / setup-android-sdk.sh
Last active September 19, 2024 17:17 — forked from jjvillavicencio/setup.sh
Install Android SDK on Windows Bash (WSL)
cd ~
sudo apt-get install unzip zip
# see https://developer.android.com/studio#command-tools for latest commandline-tools
wget https://dl.google.com/android/repository/commandlinetools-linux-9123335_latest.zip
unzip commandlinetools-linux-6858069_latest.zip -d Android
rm commandlinetools-linux-6858069_latest.zip
sudo apt-get install -y lib32z1 openjdk-8-jdk # or install openjdk-11-jdk
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
printf "\n\nexport JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64\nexport PATH=\$PATH:\$JAVA_HOME/bin" >> ~/.bashrc
@piouson
piouson / react-native-app-in-wsl2.md
Last active August 15, 2024 16:31 — forked from bergmannjg/rearct-native-app-in-wsl2.md
Building a react native app in WSL2

Keybase proof

I hereby claim:

  • I am piouson on github.
  • I am piouson (https://keybase.io/piouson) on keybase.
  • I have a public key ASAD9_MNmuDeKOtDmD8hToR0O7-m40a68kQm0I5FXp9K2go

To claim this, I am signing this object:

@piouson
piouson / gist:0c5af4cf3250b09c120224be89d55d23
Created August 9, 2020 22:15 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@piouson
piouson / index.html
Created May 4, 2020 21:15
Autocomplete with React
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Learning React</title>
<link rel="stylesheet" href="./style.css">
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>