Skip to content

Instantly share code, notes, and snippets.

View Spikeysanju's full-sized avatar
:octocat:
Busy Innovating

Sanju S Spikeysanju

:octocat:
Busy Innovating
View GitHub Profile
@Spikeysanju
Spikeysanju / guidelines.md
Created August 28, 2023 14:15
GitHub commit message guidelines for OpenAI

🆕 Added:

  • New Feature
  • Fresh Addition
  • Added Functionality

Improved:

  • Enhanced User Experience
  • Upgraded Performance
@Spikeysanju
Spikeysanju / settings.json
Created November 3, 2023 19:53
VS Code font settings.
"editor.cursorBlinking": "smooth",
"editor.cursorSmoothCaretAnimation": "on",
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.fontFamily": "'Zed Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": "'calt', 'ss01'",
"editor.fontSize": 14,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.inlineSuggest.enabled": true,

API Request Documentation

This code snippet demonstrates a JavaScript fetch request that sends a PUT request to a dynamic API endpoint. Below is a concise documentation for the request:

Request Overview

  • Endpoint: The target API endpoint is https://cooptheapp.spikeysanju.workers.dev/, which seems to be hosted on Cloudflare Workers.
  • When uploading a file set filename and it's extenstion as endpoint. ex - https://cooptheapp.spikeysanju.workers.dev/sanju.png (you can give any random names but make sure to provide extension)

Request Details

  1. HTTP Method: PUT
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
server: {
port: 5173,
strictPort: true,
open: true,
proxy: {
title description heroImage pubDate lastActive
First post
Lorem ipsum dolor sit amet
/blog-placeholder-1.jpg
Jul 08 2022
asdfadfsa

Getting Started with React: A Quick Guide

Week 1: Introduction & Quick Tours

  • Monday: Introduction video – Who you are and what to expect from the channel.- Tuesday: Quick tour of a luxurious mansion.- Wednesday: Quick tour of a cozy apartment. - Thursday: Highlight unique features of a quirky house. - Friday: Q&A session – Answer follower questions about real estate.