Skip to content

Instantly share code, notes, and snippets.

View MarkyJD's full-sized avatar
🙈

Mark Dodson MarkyJD

🙈
View GitHub Profile
@MarkyJD
MarkyJD / color-theme-provider.tsx
Last active October 4, 2025 08:06
Color themes with Next.js and Shadcn UI.
// ! The ColorTehemeProvider must be wrapped with <ThemeProvider /> using next-themes to be able to work with light and dark themes
"use client";
import { createContext, useContext, useEffect, useMemo, useState } from "react";
// To add more themes:
// add css variables to app/globals.css. With the format '.className.light' and '.className.dark'.
// Then add the className to this THEMES array
const THEMES = [
@MarkyJD
MarkyJD / keybindings.json
Created July 14, 2023 23:51
My VS Code keybindings and User settings setup, using VIM and Which-Key extension
// Place your key bindings in this file to override the defaults
[
{
"key": "shift+;",
"command": "vim.showQuickpickCmdLine",
"when": "editorTextFocus && vim.mode != 'Insert'"
},
// Navigation
{
"key": "ctrl+h",
@MarkyJD
MarkyJD / main.dart
Last active March 20, 2022 02:10
Preview of LastingAge
import 'package:flutter/material.dart';
import 'dart:async';
class AgeInfo {
final DateTime dob;
final List<String> months = [
'January',
'February',
'March',