Skip to content

Instantly share code, notes, and snippets.

View WrichikBasu's full-sized avatar

Wrichik Basu WrichikBasu

View GitHub Profile

148 Programming Questions

The following is a list of all the programming questions that I had solved through middle school and high school.

I programmed these questions in Java, but with slight modifications, these can also be done in Python or any other language. These are meant to improve your concepts and build a programming logic, and thereby strengthen your foundations.

These were lying in a .docx file on my system. I have compiled them into a more readable and widely accepted format. Some formatting issues might still be present, which I intend to fix as I find them. On the same note, if any question does not make sense, feel free to post a comment and I will cross-check with the .docx file.

@ebubekirtrkr
ebubekirtrkr / discord_flag_emoji_list.js
Created April 1, 2021 18:06
Discord Flag Emoji List
[
":checkered_flag:",
":crossed_flags:",
":flag_ac:",
":flag_ad:",
":flag_ae:",
":flag_af:",
":flag_ag:",
":flag_ai:",
":flag_al:",
@Mehdi-Amine
Mehdi-Amine / two_moons.py
Last active November 8, 2023 08:24
generating and visualizing a dataset using Scikit-learn and the make_moons() function
# 1- Generating a dataset.
from sklearn.datasets import make_moons
# X are the generated instances, an array of shape (500,2).
# y are the labels of X, with values of either 0 or 1.
X, y = make_moons(n_samples=500, noise=0.3, random_state=42)
# 2- Visualizing the dataset.
from matplotlib import pyplot as plt
@adam-p
adam-p / Local PR test and merge.md
Last active May 25, 2025 09:33
Testing a pull request, then merging locally; and avoiding TOCTOU

It's not immediately obvious how to pull down the code for a PR and test it locally. But it's pretty easy. (This assumes you have a remote for the main repo named upstream.)

Getting the PR code

  1. Make note of the PR number. For example, Rod's latest is PR #37: Psiphon-Labs/psiphon-tunnel-core#37

  2. Fetch the PR's pseudo-branch (or bookmark or rev pointer whatever the word is), and give it a local branch name. Here we'll name it pr37:

$ git fetch upstream pull/37/head:pr37
@anshula
anshula / phoronix-cmd.md
Last active June 2, 2025 10:59
Phoronix Test Suite Cheat Sheet