Skip to content

Instantly share code, notes, and snippets.

View unknown-abhi's full-sized avatar
🤗
I may be slow to respond.

Abhishek Kumar unknown-abhi

🤗
I may be slow to respond.
View GitHub Profile
@unknown-abhi
unknown-abhi / JavaStream.Java
Last active May 31, 2026 14:45
Java Stream API Examples
import java.util.*;
import java.util.function.Function;
import java.util.stream.*;
class Employee {
private int salary;
private String name;
public Employee(int salary, String name) {
this.salary = salary;
@unknown-abhi
unknown-abhi / tasks.json
Created October 14, 2023 11:10
Set up Visual Studio Code for Java Programming – CP and DSA
{
"version": "2.0.0",
"tasks": [
{
"label": "Compile and run",
"type": "shell",
"command": "Get-Content input.txt | java ${relativeFile} > output.txt",
"args": [
// "java ${relativeFile} < input.txt > output.txt"
],
@unknown-abhi
unknown-abhi / win10
Created June 4, 2021 10:59
Windows 10 Activator
@echo off
title Activate Windows 10 ALL versions for FREE!&cls&echo ============================================================================&echo #Project: Activating Microsoft software products for FREE without software&echo ============================================================================&echo.&echo #Supported products:&echo - Windows 10 Home&echo - Windows 10 Home N&echo - Windows 10 Home Single Language&echo - Windows 10 Home Country Specific&echo - Windows 10 Professional&echo - Windows 10 Professional N&echo - Windows 10 Education&echo - Windows 10 Education N&echo - Windows 10 Enterprise&echo - Windows 10 Enterprise N&echo - Windows 10 Enterprise LTSB&echo - Windows 10 Enterprise LTSB N&echo.&echo.&echo ============================================================================&echo Activating your Windows...&cscript //nologo slmgr.vbs /ckms >nul&cscript //nologo slmgr.vbs /upk >nul&cscript //nologo slmgr.vbs /cpky >nul&set i=1&wmic os | findstr /I "enterprise" >nul
if %errorlevel% EQU
Get the list of all Python pip package in the requirements.txt file – Note: This OVERWRITES the Existing requirements.txt else will create new one.
- pip freeze > requirements.txt
Remove all packages – one by one
- pip uninstall -r requirements.txt
Remove all packages at once –
@unknown-abhi
unknown-abhi / Upgrade all local packages of pip
Last active May 3, 2021 08:41
Upgrade all local packages of pip
To upgrade all local packages; you could use pip-review:
$ pip install pip-review
$ pip-review --local --interactive
{
"cmd": ["g++.exe", "-std=c++14", "-o", "$file_base_name", "$file", "&&", "start", "cmd", "/c", "$file_base_name & echo. & echo. & pause"],
"shell": true,
"selector": "source.c++"
}