Skip to content

Instantly share code, notes, and snippets.

View Mayowa-Ojo's full-sized avatar
🐞
Breaking Bug

Mayowa Ojo Mayowa-Ojo

🐞
Breaking Bug
View GitHub Profile
@Mayowa-Ojo
Mayowa-Ojo / HeadlessUI-HookForm.tsx
Last active November 15, 2022 12:59 — forked from j-bullard/App.tsx
Headless UI with React Hook Forms
import "./styles.css";
import { Person } from "./types";
import { Listbox } from "./listbox/listbox";
import { useForm } from "react-hook-form";
const people: Person[] = [
{ id: 1, name: "Durward Reynolds", unavailable: false },
{ id: 2, name: "Kenton Towne", unavailable: false },
{ id: 3, name: "Therese Wunsch", unavailable: false },
{ id: 4, name: "Benedict Kessler", unavailable: true },
version: "3.5"
services:
temporal:
container_name: temporal
environment:
- DB=mysql
- DB_PORT=3306
- VISIBILITY_MYSQL_USER=${TEMPORAL_VISIBILITY_USER}
- VISIBILITY_MYSQL_PWD=${TEMPORAL_VISIBILITY_PASSWORD}
- VISIBILITY_MYSQL_SEEDS=${TEMPORAL_VISIBILITY_PSCALE_HOSTSTRING}
@Mayowa-Ojo
Mayowa-Ojo / clean.sh
Created February 6, 2021 07:40 — forked from Iman/clean.sh
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs
@Mayowa-Ojo
Mayowa-Ojo / js-tips.md
Last active August 24, 2020 14:59
JavaScript tips and tricks 🎃
1. Check for object literal type
const isObject = (obj) => {
  return Object.prototype.toString.call(obj) === '[object object]';
}
2. Utility Types (Typescript)
// Some useful Typescript utility types
@Mayowa-Ojo
Mayowa-Ojo / hack.md
Last active August 31, 2020 14:44
Collection of amazing tools, libraries, frameworks for languages I use.

Hack - Collection of amazing open source dev tools for various tech domains including links to repository &/ documentation.

JavaScript

  • alpinejs - A rugged, minimal framework for composing JavaScript behavior in your markup. repo
  • chartjs - Simple HTML5 Charts using the tag. repo | docs
  • leaflet - JavaScript library for mobile-friendly interactive maps. repo | docs
  • mapbox - Mapbox GL JS is a JavaScript library that uses WebGL to render interactive maps from vector tiles and Mapbox styles. repo | docs
  • introjs - A better way for new feature introduction and step-by-step users guide for your website and project. repo | [docs](https://intro