Skip to content

Instantly share code, notes, and snippets.

View goyalyashpal's full-sized avatar
🎯
Focusing

goyalyashpal

🎯
Focusing
  • Example1
  • Planet Earth
View GitHub Profile
@CrendKing
CrendKing / !README.md
Last active April 27, 2024 17:27 — forked from mmozeiko/!README.md
Download MSVC compiler/linker & Windows SDK without installing full Visual Studio

This downloads standalone 64-bit MSVC compiler, linker & other tools, also headers/libraries from Windows SDK into portable folder, without installing Visual Studio. Has bare minimum components - no UWP/Store/WindowsRT stuff, just files & tools for 64-bit native desktop app development.

Run python.exe portable-msvc.py and it will download output into msvc folder. By default it will download latest available MSVC & Windows SDK - currently v14.32.17.2 and v10.0.22621.0.

You can list available versions with python.exe portable-msvc.py --show-versions and then pass versions you want with --msvc-version and --sdk-version arguments.

To use cl.exe/link.exe from output folder, first run setup.bat - after that PATH/INCLUDE/LIB env variables will be setup to use all the tools as usual. You can also use clang-cl.exe with these includes & libraries.

To use clang-cl.exe without running setup.bat, pass extra /winsysroot msvc argument (msvc is folder name where output is stored).

@Zekfad
Zekfad / conventional-commits.md
Last active July 1, 2024 12:34
Conventional Commits Cheatsheet

Quick examples

  • feat: new feature
  • fix(scope): bug in scope
  • feat!: breaking change / feat(scope)!: rework API
  • chore(deps): update dependencies

Commit types

  • build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
  • ci: Changes to CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
  • chore: Changes which doesn't change source code or tests e.g. changes to the build process, auxiliary tools, libraries
@bryanbraun
bryanbraun / git-branching-diagram.md
Last active June 24, 2024 04:42
Example Git Branching Diagram

Example Git Branching Diagram

You can use this diagram as a template to create your own git branching diagrams. Here's how:

  1. Create a new diagram with diagrams.net (formerly draw.io)
  2. Go to File > Open From > URL
  3. Insert this url (it points to the xml data below): https://gist.githubusercontent.com/bryanbraun/8c93e154a93a08794291df1fcdce6918/raw/bf563eb36c3623bb9e7e1faae349c5da802f9fed/template-data.xml
  4. Customize as needed for your team.

@B4rtware
B4rtware / config-highlight.cfg
Last active April 30, 2024 15:40
Python IDLE Dark Theme (Visual Studio Colors)
[vsc]
definition-foreground = #3987d6
error-foreground = #fe1b1b
normal-foreground = #dcdcdc
keyword-foreground = #3987d6
hilite-foreground = #dcdcdc
comment-background = #1e1e1e
hit-foreground = #ffffff
builtin-background = #1e1e1e
stdout-foreground = #dcdcdc
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 3, 2024 09:17
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

#!/usr/bin/env python
# Tutorial available at: https://www.youtube.com/watch?v=uSt80abcmJs
# Feedback welcome: jacksonbates@hotmail.com
from gimpfu import *
def extreme_unsharp_desaturation(image, drawable):
pdb.gimp_image_undo_group_start(image)
radius = 5.0