Skip to content

Instantly share code, notes, and snippets.

View Timonwa's full-sized avatar
๐Ÿ‘ป
World Class Dev

Timonwa Akintokun Timonwa

๐Ÿ‘ป
World Class Dev
View GitHub Profile
@Mastersam07
Mastersam07 / auto_response.yaml
Last active October 26, 2023 07:18
Automated Responses Github Actions
name: Automated Responses
on:
issues:
types: [opened]
pull_request:
types: [opened]
jobs:
respond:
@bramses
bramses / contact.js
Last active May 19, 2024 23:40
Create a Contact Form in NextJS/Vercel
// frontend - react
import { useState } from "react";
import Alert from "@reach/alert";
export default function Contact() {
const [name, setName] = useState("");
const [email, setEmail] = useState("");
const [message, setMessage] = useState("");
const [messageSent, setMessageSent] = useState(false);

Authors Guide: Article Template

Please submit your article including all of the information below. You can include this as a seperate file if you like - but please complete each section. Please use an online service to write your article, for example Dropbox Paper, Draft.in, Google Docs. For more help, see the editorial guide

Article Title

Ideally under 67 characters, what problem does this article solve?

Quick Summary

@Haugen
Haugen / env-file-in-react-create-app.md
Created November 9, 2018 17:33
Using .env file environment variables with create-react-app project

For a simple way to use environment variables in your react-create-app project, follow these steps:

  1. Create a new file named .env in the root of your project.
  2. In your new .env file, add a new key=value pair. For security reasons, you must prepend your key with REACT_APP, for example REACT_APP_API_KEY=abcdefg123456789
  3. Restart your server development server. In order for React to find and register your newly created environment variable you must restart your server. Do this every time you add or change a variable.
  4. Your new variables will now be available throughout your React app via the global process.env object. In our case, we could get our API key using process.env.REACT_APP_API_KEY.

Additinal notes

  • Since we commonly store secrets in .env you probably want to add it to .gitignore.
  • You don't need to install the dotenv package or anything else for this to work.
@DmytroLisitsyn
DmytroLisitsyn / country_dial_info.json
Last active December 11, 2025 09:04 — forked from Goles/CountryCodes.json
A JSON dataset of entities containing country name, code, dial (phone) code and flag emoji icon.
[{"name":"Afghanistan","flag":"๐Ÿ‡ฆ๐Ÿ‡ซ","code":"AF","dial_code":"+93"},{"name":"ร…land Islands","flag":"๐Ÿ‡ฆ๐Ÿ‡ฝ","code":"AX","dial_code":"+358"},{"name":"Albania","flag":"๐Ÿ‡ฆ๐Ÿ‡ฑ","code":"AL","dial_code":"+355"},{"name":"Algeria","flag":"๐Ÿ‡ฉ๐Ÿ‡ฟ","code":"DZ","dial_code":"+213"},{"name":"American Samoa","flag":"๐Ÿ‡ฆ๐Ÿ‡ธ","code":"AS","dial_code":"+1684"},{"name":"Andorra","flag":"๐Ÿ‡ฆ๐Ÿ‡ฉ","code":"AD","dial_code":"+376"},{"name":"Angola","flag":"๐Ÿ‡ฆ๐Ÿ‡ด","code":"AO","dial_code":"+244"},{"name":"Anguilla","flag":"๐Ÿ‡ฆ๐Ÿ‡ฎ","code":"AI","dial_code":"+1264"},{"name":"Antarctica","flag":"๐Ÿ‡ฆ๐Ÿ‡ถ","code":"AQ","dial_code":"+672"},{"name":"Antigua and Barbuda","flag":"๐Ÿ‡ฆ๐Ÿ‡ฌ","code":"AG","dial_code":"+1268"},{"name":"Argentina","flag":"๐Ÿ‡ฆ๐Ÿ‡ท","code":"AR","dial_code":"+54"},{"name":"Armenia","flag":"๐Ÿ‡ฆ๐Ÿ‡ฒ","code":"AM","dial_code":"+374"},{"name":"Aruba","flag":"๐Ÿ‡ฆ๐Ÿ‡ผ","code":"AW","dial_code":"+297"},{"name":"Australia","flag":"๐Ÿ‡ฆ๐Ÿ‡บ","code":"AU","dial_code":"+61"},{"name":"Austria","flag":"๐Ÿ‡ฆ๐Ÿ‡น","code":"AT","dial_code":"+43"},{"name":"Azerbaijan","flag":"๐Ÿ‡ฆ๐Ÿ‡ฟ","code":"AZ","dial_code":"+9
@whitingx
whitingx / meta-tags.md
Created October 5, 2012 16:41 — forked from kevinSuttle/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>