See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
import { getAuth, withClerkMiddleware } from "@clerk/nextjs/server"; | |
import { NextResponse, NextFetchEvent } from "next/server"; | |
import type { NextRequest } from "next/server"; | |
import { Ratelimit } from "@upstash/ratelimit"; | |
import { Redis } from "@upstash/redis"; | |
const publicPaths = ["/", "/sign-in*", "/sign-up*", "/api/blocked"]; | |
const ratelimit = new Ratelimit({ | |
redis: Redis.fromEnv(), |
{ | |
"sites": [ | |
{ | |
"cid": "d925ac3ddb957d38a3e68612", | |
"date": 1617986416631, | |
"id": 1, | |
"label": "Top Sites", | |
"starred": false, | |
"websites": [ | |
{ |
{ | |
"sites": [ | |
{ | |
"cid": "f481aaa1a1d07ca7abb553a2", | |
"date": 1616984446830, | |
"id": 1, | |
"label": "Frequently Used Sites", | |
"starred": false, | |
"websites": [ | |
{ |
Get the metadata and content of all files in a selected GitHub repo, using GraphQL
You might want to get a tree summary of files in a repo without downloading the repo, or maybe you want to lookup the contents of a file again without download the whole repo.
The approach here is to query data from GitHub using the Github V4 GraphQL API.
# Title of Your Project [](https://twitter.com/intent/tweet?text=Check%20out%20this%20cool%20project&url=https://github.com/Cool/Project&hashtags=project,opensource) | |
 | |
 | |
 | |
 | |
#### Description of your project |
const colors = require('@tailwindcss/ui/colors') | |
module.exports = { | |
// ... | |
theme: { | |
// ... | |
extend: { | |
// ... | |
colors: { | |
brand: colors.indigo, |
import sys, string | |
from xml.sax import saxutils, handler, make_parser | |
class ContentGenerator(handler.ContentHandler): | |
def __init__(self, out = sys.stdout): | |
handler.ContentHandler.__init__(self) | |
Sidekiq jobs can be enqueued or scheduled. Enqueued means that they are gonna be picked up as soon as possible, scheduled jobs will be enqueued at some specific time.
When using ActiveJobs, Rails will return a job_id
after sending the job to ActiveJobs
job = UserMailer.send_invite(params).deliver_later