Skip to content

Instantly share code, notes, and snippets.

View ByteJoseph's full-sized avatar
:electron:
Open Sourcer

Joseph ByteJoseph

:electron:
Open Sourcer
  • compile studio
  • Republic Of India
  • 11:58 (UTC +05:30)
View GitHub Profile
@ByteJoseph
ByteJoseph / windows_virtual_env.md
Created June 12, 2024 02:43
Creating and activating a Python virtual environment on Windows

Creating and Activating a Python Virtual Environment on Windows

Windows Logo

Step-by-Step Guide

1. Open Command Prompt or PowerShell

@ByteJoseph
ByteJoseph / script.js
Created July 8, 2024 15:28
Navigate to Google when hit enter
document.addEventListener('DOMContentLoaded', () => {
const textBox = document.getElementById('your_id');
textBox.addEventListener('keydown', (event) => {
if (event.key === 'Enter') {
const keyword = textBox.value;
const googleSearchUrl = `https://www.google.com/search?q=${encodeURIComponent(keyword)}`;
window.location.href = googleSearchUrl;
}
});