Skip to content

Instantly share code, notes, and snippets.

@mkcode
mkcode / Get Student PRs.md
Last active June 22, 2020 21:29
Student Pull Request GraphQL Query

Get List of your fellows' PRs'

Get list of Student Node Ids

Do this once and save the user ids

Url is https://api.github.com/users/[GITHUB_USER_NAME]

I used the following command, filling in the different user names. (jsonpath is not available by default):

@mkcode
mkcode / mlh_open_source.md
Last active February 4, 2021 00:44
MLH Open Source Program Description

Welcome to the MLH Open Source Fellowship

Over the course of the program, you will work with other fellows, your team lead, open source maintainers, and Raise.dev Coaches to contribute to open source. You can read the full program details in the official MLH Fellowship Handbook.

Fellow Expectations

As a member of the Fellowship, you have access to a team of experienced software developer coaches. You're welcome and encouraged to go to them for help and advice as needed throughout the program. To help you stay on track, we've set some minimum expectations for interacting with Raise.dev Coaches.

Over the course of the program you should:

  • Complete at least five (5) Pair Programming Sessions with a Raise.dev Coach.
  • Complete two (2) Career Advice Sessions with a Raise.dev Coach.
  • Attend all of the weekly sync meetings with your project maintainer and Raise.dev Coach.
@mkcode
mkcode / .vscode-neovim-init.vim
Created October 5, 2022 20:17
Minimal yet functional config for VSpaceCode with VSCode-Neovim
" Our .vscode-neovim directory
let data_dir = '~/.vscode-neovim'
let plugFile = data_dir . '/plug.vim'
" Download plug.vim if it doesn't exist
" Then install the plugins in this file
if empty(glob(plugFile))
silent execute '!curl -fLo '.plugFile.' --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
execute "autocmd VimEnter * PlugInstall --sync | source " . expand('%:p')
@mkcode
mkcode / route.ts
Last active April 7, 2025 11:24
How to setup Next App Router + Clerk + TRPC
// TRPC API endpoint
// src/app/api/trpc/[trpc]/route.ts
import { fetchRequestHandler } from "@trpc/server/adapters/fetch";
import { type NextRequest } from "next/server";
import { env } from "~/env";
import { appRouter } from "~/server/api/root";
import { createTRPCContext } from "~/server/api/trpc";
import { getAuth } from "@clerk/nextjs/server";