Skip to content

Instantly share code, notes, and snippets.

View fzn0x's full-sized avatar
💻
Working from home

Fauzan fzn0x

💻
Working from home
View GitHub Profile
/**
* Example `FizzBuzz` with JavaScript (Pattern-Matching Like????????????) λ_(ツ)_/¯
* I Love this tweet
* @see https://twitter.com/cajuinaoverflow/status/1395022027204005889
* JavaScript will make You Crazy (Trust Me!)
*/
const FizzBuzz = n => ({
true: n,
[ n % 5 === 0]: "Buzz",
[ n % 3 === 0]: "Fizz",
@fzn0x
fzn0x / web3js-realtime-balance.js
Last active July 20, 2023 13:43
Get Realtime Balance in web3.js | author using v1.3.6.rc-x, vue composition api. FREE TO MODIFY FOR YOUR OWN USE.
/*
* Author : Muhammad Fauzan | fauzan121002
* Web3.js v1.3.6
*
* No License Used, Free to modify, commercial use and distribute.
*/
import { defineComponent, useAsync, ref } from '@nuxtjs/composition-api'
export const useGetUserBalance = async () => {
@r17x
r17x / OSX.md
Created February 24, 2022 18:31
MacOS common tools

Common Tools for development in Mac

xcode-select

  • version
xcode-select --version
// xcode-select version 2392.
  • Install