Skip to content

Instantly share code, notes, and snippets.

View Core447's full-sized avatar

Core447

View GitHub Profile
@kathrindc
kathrindc / README.md
Created June 1, 2024 08:31
Patch for shadcn/ui NavigationMenu

You should be able to apply the changes by either grabbing the navigation-menu.tsx I uploaded below or trying to apply the patch file using the git apply command. Though you might need to adjust the paths if you try using the patch file.

@stellasphere
stellasphere / descriptions.json
Last active October 12, 2025 20:38
WMO weather interpretation code descriptions (& images)
{
"0":{
"day":{
"description":"Sunny",
"image":"http://openweathermap.org/img/wn/01d@2x.png"
},
"night":{
"description":"Clear",
"image":"http://openweathermap.org/img/wn/01n@2x.png"
}
@ozh
ozh / git cherry-pick within a pull request.md
Last active June 6, 2025 20:27
git cherry-pick within a pull request

1. Create new branch:

git checkout -b otherrepo-master master

2. Get the contents of the PR

git pull https://github.com/otherrepo/my-repo-name.git master
@mozbugbox
mozbugbox / pixbuf2pillow.py
Last active October 15, 2023 14:05
Python Pillow image to/from GdkPixbuf with gobject introspection
#!/usr/bin/python3
# vim:fileencoding=utf-8:sw=4:et
# Convert between pygobject Pixbuf and PIL/Pillow image format
# Also a function to do fast gamma correction with Pillow image
from __future__ import print_function, unicode_literals, absolute_import
import sys
from gi.repository import GLib, GdkPixbuf