Skip to content

Instantly share code, notes, and snippets.

View ardyfeb's full-sized avatar
🌏
Exploring

Ardy Febriansyah ardyfeb

🌏
Exploring
View GitHub Profile
@ardyfeb
ardyfeb / App.jsx
Created October 2, 2023 20:45
Teteh Wesha
import { useState } from 'react'
function App() {
const [inputPage, setInputPage] = useState(false)
const [success, setSuccess] = useState(false)
const [submitting, setSubmitting] = useState(false)
const [inputValue, setInputValue] = useState("")
const onNope = e => {
const randomX = Math.floor(Math.random() * window.innerWidth - 100)

Advanded Typescript Generic

Use and play with Typescript Generic like a pro.

Table of Contents:

  1. Conditional Types
  2. String Concatenate
  3. infer Keyword
  4. Type Assertion

@ardyfeb
ardyfeb / ghdebian.sh
Created April 26, 2021 06:29
Github CLI installation script for debian
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
sudo apt-add-repository https://cli.github.com/packages
sudo apt update
sudo apt install gh
@ardyfeb
ardyfeb / phpinfo.php
Last active April 26, 2021 06:27
PHP Info
<?= phpinfo() ?>