Skip to content

Instantly share code, notes, and snippets.

View FloydanTheBeast's full-sized avatar
⚙️
Grinding

Shadi Abdelsalam FloydanTheBeast

⚙️
Grinding
View GitHub Profile
@FloydanTheBeast
FloydanTheBeast / SinglyLinkedList.cpp
Created September 16, 2020 09:49
Algorithms and data structures
struct Node {
int val;
Node *next;
Node(int x) : val(x), next(NULL) {}
};
class MyLinkedList {
public:
int length;
Node *head;
@FloydanTheBeast
FloydanTheBeast / vite.config.ts
Created September 15, 2022 12:12
Vite + React extended config
import dns from 'dns';
import path from 'path';
import react from '@vitejs/plugin-react';
import { defineConfig, loadEnv, splitVendorChunkPlugin } from 'vite';
import checker from 'vite-plugin-checker';
import svgr from 'vite-plugin-svgr';
// Open localhost instead of 127.0.0.1
dns.setDefaultResultOrder('verbatim');