Skip to content

Instantly share code, notes, and snippets.

View choyan's full-sized avatar
🎯
Focusing

Zahidul Hossain choyan

🎯
Focusing
View GitHub Profile
@choyan
choyan / Listbox.jsx
Last active June 22, 2022 03:39
React Hook Form 6 + Headless UI
const languageList = [
{ name: 'English', short: 'en' },
{ name: 'Türkçe', short: 'tr' },
{ name: 'Arapça', short: 'ar' },
];
<Controller
control={control}
name="language"
defaultValue={{ name: 'English', short: 'en' }}
# import libraries
import pandas as pd
import seaborn as sns
import flair
# configure size of heatmap
sns.set(rc={'figure.figsize':(35,3)})
# function to visualize
def visualise_sentiments(data):
@choyan
choyan / wwwemirasgroup.conf.sh
Last active June 18, 2021 13:18
Nginx configuration for domain, sub-domain and reverse proxy serup
# server blocks for incoming HTTP requests
# https://stackoverflow.com/questions/64955127/nginx-multiple-node-apps-with-multiple-subdomains
# https://stackoverflow.com/questions/5009324/node-js-nginx-what-now?noredirect=1&lq=1
server {
listen 80;
listen [::]:80;
server_name emirasgroup.com www.emirasgroup.com;
# redirect any HTTP request to HTTPS
return 301 https://$http_host$request_uri;
}
@choyan
choyan / yup schema.md
Last active November 10, 2021 09:38
Yup schema definitions
const schema = yup.object().shape({
  name: yup.string().required('Bu alan zorunludur'),
  email: yup.string('Doğru bir email format değildir').email().required('Bu alan zorunludur'),
  phone: yup
    .number('Doğru bir telefon numara format değildir')
    .positive()
    .transform((v, o) => (o === '' ? null : v))
    .nullable()
    .required('Bu alan zorunludur'),
@choyan
choyan / seller-dashboard.html
Created March 2, 2021 09:08
seller-dashboard.html
<!--
This example requires Tailwind CSS v2.0+
This example requires some changes to your config:
```
// tailwind.config.js
const colors = require('tailwindcss/colors')
module.exports = {
@choyan
choyan / readme.md
Created December 30, 2020 10:32
Nginx reverse proxy setup for ExpressJS apps

Nginx reverse proxy setup with express server

Install nginx

sudo apt update
sudo apt install nginx
sudo ufw app list
sudo ufw allow 'Nginx HTTP'
sudo ufw status
systemctl status nginx

Git Workflow

Initialize Git

git init
git add .
git commit -m 'new commit'

Create branch

git branch develop
https://iconscout.com/illustrations/
https://www.manypixels.co/gallery/
https://isometric.online/
https://www.opendoodles.com/
https://www.glazestock.com/
https://fresh-folk.com/
https://mixkit.co/
http://drawkit.io/