How to remove subfolders/subdirectories from git tracking

From https://stackoverflow.com/questions/2545602/how-to-git-ignore-subfolders-subdirectories To ignore Solutions/projects/bin/Debug but not bin/Debug Solution/*/bin/Debug you can also use the ** wildcard to match any level of subdirectories: **/bin/Debug/ Bonus Content: Remove existing git tracked files Now say you had a folder (commited to your git repository) that you now wanted to remove altogether from your repository. First add it to your gitignore file. Then do one of the following steps. https://stackoverflow.com/questions/7075923/resync-git-repo-with-new-gitignore-file Extreme git rm -r --cached git add ....

December 25, 2021 · 1 min · Harsh Kumar

Some basic experiments with the pandas' append command

Understanding Commands: pandas.append() Basic Usage >>> import pandas as pd >>> df = pd.DataFrame([[1, 2], [3, 4]], columns=list('AB'), index=['x', 'y']) >>> df2 = pd.DataFrame([[5, 6], [7, 8]], columns=list('AB'), index=['x', 'y']) >>> df.append(df2) A B x 1 2 y 3 4 x 5 6 y 7 8 >>> df A B x 1 2 y 3 4 >>> new = df.append(df2) >>> new A B x 1 2 y 3 4 x 5 6 y 7 8 >>> df A B x 1 2 y 3 4 >>> df2 A B x 5 6 y 7 8 >>> new....

December 24, 2021 · 2 min · Harsh Kumar

The Source of My Social Sciences Hate

Recently I was reading a beautiful interview of Amartya Sen done by The Harvard Gazette. You can read my higlights over at hypothes.is This reminded me of the first time I read a paper by Amartya Sen. Back when I was in the ninth grade I was required to do a project for my Social Studies class. The topic allotted to me was “Should we have caste based reservation?” Heavy stuff 😩, especially for my 14-year-old ass....

June 27, 2021 · 3 min · Harsh Kumar

Book Review: Brief Interviews with Hideous Men

Brief Interviews with Hideous Men by David Foster Wallace My rating: 5 of 5 stars I enjoyed it, but it was a tough read. Unlike what the title might suggest this book is a collection of short stories. Some, but not all, of them are structured like interviews. Some, but not all, focus on a male character. Some, but not all, are about awful people. The vibe of the book is that it is a meditation on thinking....

May 30, 2021 · 2 min · Harsh Kumar

Today I Learnt 15

healthygamer.gg Interview with Sasha Grey Being a Potential Cult Leader People come to Grey with her problems since she was 11. Difference between a person who is a therapist and who helps other people with their problems. Training; expertise; limitations. If a therapist can’t stream on Twitch, then under qualified people will do that job of giving advice. The more qualified you are, the less you are allowed to do the public advice action....

May 24, 2021 · 2 min · Harsh Kumar