Skip to content

Instantly share code, notes, and snippets.

View kp-gists's full-sized avatar
🎯
Focusing

kp-gists

🎯
Focusing
View GitHub Profile
@kp-gists
kp-gists / SatisfyText.tsx
Created January 10, 2025 12:36
Custom Font Text Nextjs
import React from 'react';
import { Satisfy } from 'next/font/google';
import clsx from 'clsx';
const satisfy = Satisfy({
variable: '--font-satisfy-mono',
subsets: ['latin'],
weight: '400',
});
@laterbreh
laterbreh / Express 4 and Socket.io: Passing socket.io to routes - app.js
Last active August 15, 2023 13:58
Express 4 and Socket.io: Passing socket.io to routes.
var app = express();
app.io = require('socket.io')();
var routes = require('./routes/index')(app.io);
app.use('/', routes);