Skip to content

Instantly share code, notes, and snippets.

View riyaadh-abrahams's full-sized avatar
🥑
Focusing

Riyaadh Abrahams riyaadh-abrahams

🥑
Focusing
View GitHub Profile
@typeofweb
typeofweb / SuperLink.tsx
Last active June 21, 2024 15:06
Link with on-hover prefetching in Next.js
@gyopiazza
gyopiazza / schema.ts
Last active November 10, 2024 10:52
Multi-tenant with Drizzle ORM (multiple sqlite databases) - PoC
import { integer, sqliteTableCreator, text } from 'drizzle-orm/sqlite-core'
const sqliteTable = (tenant?: string) =>
sqliteTableCreator(name => (tenant ? `${tenant}_${name}` : name))
export const users = sqliteTable()('users', {
id: integer('id', { mode: 'number' }).primaryKey({ autoIncrement: true }),
name: text('name'),
})
@hardyscc
hardyscc / HelloResolver.ts
Last active September 21, 2023 10:36
Keycloak Sample - react type-graphql react-router-dom react-keycloak keycloak-js keycloak-connect
@Resolver()
export class HelloResolver {
@Authorized()
@Query(() => String)
hello(): string {
return "Hello World";
}
}
@singerng
singerng / Django_Default_Config.md
Last active July 25, 2023 20:13
Config for Django/Pipenv/Gunicorn/Nginx/Systemd.

Reasonable default configuration for a web app that uses Django and the following dependencies:

  • Pipenv: Python package manager
  • Gunicorn: WSGI server
  • Nginx: Static webserver passing to gunicorn, handling SSL, etc.
  • Systemd: Used to load Gunicorn on startup

This is my goto for setting up projects.

@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active November 17, 2024 08:50
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub