Skip to content

Instantly share code, notes, and snippets.

View HarshKapadia2's full-sized avatar
πŸ’›
"Kindness always wins." -Selena Gomez

Harsh Kapadia HarshKapadia2

πŸ’›
"Kindness always wins." -Selena Gomez
View GitHub Profile
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active June 7, 2025 04:20
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

@bsletten
bsletten / ml-recs.md
Last active December 4, 2024 15:32
Machine Learning Path Recommendations

This is an incomplete, ever-changing curated list of content to assist people into the worlds of Data Science and Machine Learning. If you have a recommendation for something to add, please let me know. If something isn't here, it doesn't mean I don't recommend it, I just may not have had a chance to review it yet or not.

I will generally list things in order of easier to more formal/challenging content.

It may feel like there is an overwhelming amount of stuff for you to learn (because there is). But, there is a guided path that will get you there in time. You need to focus on Linear Algebra, Calculus, Statistics and probably Python (or R). Your best bet is to get a Safari Books Online account (https://www.safaribooksonline.com) which you may already have access to through school or work. If not, it is a reasonable way to get access to a tremendous number of books and videos.

I'm not saying you will get what you need out of everything here, but I have read/watched at least some of all of the following an

@sturmenta
sturmenta / firestore2json.js
Last active October 28, 2022 19:03
firestore to json & json to firestore
const admin = require('firebase-admin');
const fs = require('fs');
const serviceAccount = require('../../../../../../Private/myschool-data_transfer-key.json');
admin.initializeApp({ credential: admin.credential.cert(serviceAccount) });
const schema = require('./schema').schema;
const firestore2json = (db, schema, current) => {
@bradtraversy
bradtraversy / docker-help.md
Last active June 3, 2025 21:01
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@fnky
fnky / ANSI.md
Last active June 7, 2025 00:14
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@OleksiyRudenko
OleksiyRudenko / why-newline.md
Last active October 4, 2024 16:39
Why should text files end with a newline?

Why should text files end with a newline?

Reasons:

  • UNIX standard
  • If the last line in a file doesn't end with a newline then addition of next line affects two lines instead of one. This also pollutes diff on multiple files, so reader may wonder what has changed in a line whereas no significant change has occured.

Multiple newlines at the file end are also redundant as well as spaces at the end of line.

@laughinghan
laughinghan / Every possible TypeScript type.md
Last active May 29, 2025 22:28
Diagram of every possible TypeScript type

Hasse diagram of every possible TypeScript type

  • any: magic, ill-behaved type that acts like a combination of never (the proper [bottom type]) and unknown (the proper [top type])
    • Anything except never is assignable to any, and any is assignable to anything at all.
    • Identities: any & AnyTypeExpression = any, any | AnyTypeExpression = any
    • Key TypeScript feature that allows for [gradual typing].
  • unknown: proper, well-behaved [top type]
    • Anything at all is assignable to unknown. unknown is only assignable to itself (unknown) and any.
    • Identities: unknown & AnyTypeExpression = AnyTypeExpression, unknown | AnyTypeExpression = unknown
  • Prefer over any whenever possible. Anywhere in well-typed code you're tempted to use any, you probably want unknown.
@camh-
camh- / eol-at-eof.md
Created March 7, 2020 04:41
Please add newlines at end of files

See https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline

A newline in a text file is a terminator, not a separator. This means each line should have a newline at the end of it, including the last line of the file.

Many editors automatically add the newline at the end of the file. Some do not. If you can configure your editor to ensure there is always a newline at the end of every line, please do so.

Because many editors do add this newline, if you commit a text file without it, when someone else edits the file, their editor will (correctly) add the newline. This causes a spurious diff in the file. Spurious

@rishavpandey43
rishavpandey43 / git-commit-styleguide.md
Last active June 4, 2025 19:24
This gist consist of the rules and best practice of good conventional git commit message

Git Commit Messages Style-Guides

  • Use the present tense ("Add feature" not "Added feature")
  • Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
  • Limit the first line to 72 characters or less
  • Reference issues and pull requests liberally after the first line
  • When only changing documentation, include [ci skip] in the commit title
  • Consider starting the commit message with an applicable emoji

Types

@2tanayk
2tanayk / Some_compatibility_points.md
Last active February 2, 2021 08:24
How to get sponsorships? (A gist for TSEC Codecell committee)

Some points to check compatibility with a sponsor:

8 Compatibility Attributes:

  1. Relationship – Do you have an existing relationship or connection with the sponsor?
  2. Objectives – Do you fit with the marketing objectives of the sponsor?
  3. Audience – How closely do you share a common target audience?
  4. Competition – Does their competition use sponsorship in your area as a marketing tool?
  5. Attributes – How closely do the attributes of what you have to offer match or compliment that of the sponsor? E.g sophisticated, smart, loud, family orientated, original.
  6. Geography – Does the sponsor operate in the same geography as you and have marketing objectives targeting the same level? E.g. National, state, region, city, district, suburb.
  7. Comfort – How comfortable are they using sponsorship as a marketing tool? Do they have a strong sponsorship history?