Skip to content

Instantly share code, notes, and snippets.

View MrSnor's full-sized avatar
👋
:)

Partha Priyadarshi Das MrSnor

👋
:)
View GitHub Profile
@stellasphere
stellasphere / descriptions.json
Last active December 6, 2025 17:25
WMO weather interpretation code descriptions (& images)
{
"0":{
"day":{
"description":"Sunny",
"image":"http://openweathermap.org/img/wn/[email protected]"
},
"night":{
"description":"Clear",
"image":"http://openweathermap.org/img/wn/[email protected]"
}
@VENSUCCESS
VENSUCCESS / image-slider-with-multiple-controls-and-mobile-swipe-control-javascript.markdown
Created May 7, 2022 17:56
Image slider with multiple controls and mobile swipe control (Javascript)
@luizwhite
luizwhite / .eslintrc.json
Created November 2, 2021 17:23
React Vite Eslint Config
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:react-hooks/recommended",
"plugin:react/recommended",
"airbnb",
"plugin:@typescript-eslint/recommended",
@Explosion-Scratch
Explosion-Scratch / Useful stuff.md
Last active April 11, 2024 19:13
Useful stuff

Useful resources

Here you will find lots of useful resources to me as a developer, everything from font pairing, to regex finding, to tailwind resources is here! If you have any suggestions feel free to suggest them in a comment!

Fonts

@Aldaviva
Aldaviva / Windows 10 & 11 services.md
Last active December 6, 2025 13:58
Safety of disabling services in Windows 10 and 11

These settings apply to normal, functioning Windows 10 and 11 Pro desktops and laptops with

  • wired Ethernet
  • Wi-Fi
  • Bluetooth
  • IPv4
  • IPv6
  • no touch screen

Safe to disable

@rmdashrfv
rmdashrfv / extensions.md
Last active October 24, 2025 06:06
VS Code Extensions List
@cesasol
cesasol / pnpm-install
Created October 10, 2018 23:13
pnpm install solver
#!/bin/sh
# This is a simple hack to fix the pnpm module resolution, if you encounter "Module not found" in some deep dependency of your
# project, then use this script to add those not founded dependencies as a direct dev dependency.
# All credit goes to flaviut https://github.com/pnpm/pnpm/issues/1261
while true; do pnpm install -D $(pnpm start 2>&1 | grep 'Error: Cannot find module' | sed "s/Error: Cannot find module '\([a-z.-]\+\)'/\1/g"); done
@SKempin
SKempin / Git Subtree basics.md
Last active November 10, 2025 21:03
Git Subtree basics

Git Subtree Basics

If you hate git submodule, then you may want to give git subtree a try.

Background

When you want to use a subtree, you add the subtree to an existing repository where the subtree is a reference to another repository url and branch/tag. This add command adds all the code and files into the main repository locally; it's not just a reference to a remote repo.

When you stage and commit files for the main repo, it will add all of the remote files in the same operation. The subtree checkout will pull all the files in one pass, so there is no need to try and connect to another repo to get the portion of subtree files, because they were already included in the main repo.

Adding a subtree

Let's say you already have a git repository with at least one commit. You can add another repository into this respository like this:

@cobyism
cobyism / gh-pages-deploy.md
Last active December 7, 2025 08:10
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@ahoward
ahoward / caching-https-creds.markdown
Created June 6, 2012 21:42
Fix Username/Password prompting for github repos cloned via https scheme

github recently switched to an https scheme as the default for cloning repos. as a side effect you may suddenly be prompted for a 'Username' and 'Password' when you push where, previously, you were able to do so without typing in credentials. the solution is to cause git to cache https credentials which is easy, since git uses curl under the covers

in your home directory create a file called '.netrc', for example

/Users/ahoward/.netrc

in it put these contents