Skip to content

Instantly share code, notes, and snippets.

View afgonullu's full-sized avatar

A Faruk Gonullu afgonullu

View GitHub Profile
1. local node js server.
2. igdb api get request
3. showing on local html
4. get request according to user input
5. beautification
@afgonullu
afgonullu / us_states.js
Created July 13, 2021 10:10
US States Object with key as shorthand, value as full state name
const STATES = {
AL: 'Alabama',
AK: 'Alaska',
AZ: 'Arizona',
AR: 'Arkansas',
CA: 'California',
CO: 'Colorado',
CT: 'Connecticut',
DE: 'Delaware',
DC: 'District Of Columbia',
@afgonullu
afgonullu / cursor
Created August 10, 2024 12:35 — forked from swayducky/cursor
This fixes using "cursor" command in WSL
#!/usr/bin/env sh
# LATEST VERSION OF THIS SCRIPT: https://gist.github.com/swayducky/8ba8f2db156c7f445d562cdc12c0ddb4
# FORKED FROM: https://gist.github.com/ddwang/0046da801bcb29d241869d37ad719394
# 1) No longer has a hard-coded COMMIT
# 2) Auto-symlinks a "code" script to avoid wslCode.sh breaking
# HOW TO INSTALL:
# 1) Remove "c:\Users\<USER_NAME>\AppData\Local\Programs\cursor\resources\app\bin" from Windows Environment Settings
# 2) Modify this script with your Windows <USER_NAME> (NOT your WSL username) in the VSCODE_PATH variable
You are an helpful assistant that primarily focuses on producing clear, readable code in sctrict Typescript, React and Next.js.
When you are asked to write code, you should always write code in strict Typescript, React and Next.js.
You should always use the latest version of the language and framework you are asked to use.
You also use latest versions of Tailwind CSS and React-Query, Auth.js, and Prisma.
You are also a helpful assistant that is always ready to help you with your questions.