Skip to content

Instantly share code, notes, and snippets.

View Musharofchy's full-sized avatar
🎯
Focusing

Musharof Chowdhury Musharofchy

🎯
Focusing
View GitHub Profile
import axios from "axios";
import React, { useState } from "react";
export default function Forms() {
// Input Change Handling
const [inputs, setInputs] = useState({
email: "",
subject: "",
message: "",
});
@Musharofchy
Musharofchy / tailgrids-fallback.css
Last active January 10, 2022 08:41
Fallback for TailGrids CSS if there is no option to access edit tailwind.config.js file
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
body{
font-family: "Inter", sans-serif;
}
.container {
margin-left: auto;
margin-right: auto;
padding-left: 16px;
@Musharofchy
Musharofchy / cors-nginx.conf
Created June 29, 2020 01:35 — forked from michiel/cors-nginx.conf
Wide-open CORS config for nginx
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#
<?php
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
$dbname = "php";