Skip to content

Instantly share code, notes, and snippets.

View learneradarsh's full-sized avatar
🏠
Working from home

Adarsh Pandey learneradarsh

🏠
Working from home
View GitHub Profile
import smtplib
from email.message import EmailMessage
# === CONFIG ===
YOUR_NAME = "Adarsh Pandey"
YOUR_EMAIL = "xyz@gmail.com"
YOUR_PASSWORD = "MYPASSWORD" # Use an App Password for Gmail with 2FA
PORTFOLIO_LINK = "https://dummylink.com" #link of resume or portfolio.
RECRUITER_EMAILS = [
import google.auth
from googleapiclient.discovery import build
# Set up the YouTube API client
credentials, _ = google.auth.default(scopes=["https://www.googleapis.com/auth/youtube.force-ssl"])
youtube = build("youtube", "v3", credentials=credentials)
# Set the keyword to search for
keyword = "cooking"
import math
import time
import io
import boto3
import paramiko
S3_BUCKET_NAME = "example-bucket"
FTP_HOST = "ftp.example.com"
FTP_PORT = 22
@learneradarsh
learneradarsh / prettier-eslint-precommit.md
Created May 12, 2021 20:04 — forked from estorgio/prettier-eslint-precommit.md
Setting up Prettier and ESLint with pre-commit hook

Setting up Prettier and ESLint with pre-commit hook

  • Initialize Git repository
    git init
  • Create .gitignore file and add the following:
    node_modules/
    *.env
    
@learneradarsh
learneradarsh / dockerShortcuts.txt
Created August 29, 2020 09:36
Docker Shortcuts
Docker Shortcuts
DOCKER BASICS
------------
// list all images
docker images
// pull a specific image
docker pull image:tag
@learneradarsh
learneradarsh / Eyeballing-This.md
Created February 21, 2020 05:44 — forked from zcaceres/Eyeballing-This.md
Understanding Binding and 'this' in Javascript

How to Eyeball Your ‘This’ Context in Javascript

The early programmer struggles with the Javascript keyword this. But understanding your this context is easier than it seems.

This is all about where a function is invoked. Often, early programmers worry about where the function was declared. Perhaps the function was declared in a specific file or a particular object. Surely this changes it's this!

Nope.

To understand this, we need to see where it is invoked. Nothing else matters, with one exception which we'll cover in a moment.

http://flukeout.github.io/
https://regexcrossword.com
http://flexboxfroggy.com/
https://cssbattle.dev/
Promises Tricky Excercise
-------------------------
function f1(){ return Promise.resolve("f1")}
@learneradarsh
learneradarsh / media-query.css
Created February 2, 2020 17:35 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@learneradarsh
learneradarsh / std.md
Created January 24, 2020 06:29 — forked from turbo/std.md
Git Commit Message Standard

Merged from https://github.com/joelparkerhenderson/git_commit_message and https://chris.beams.io/posts/git-commit/

General Rules

  • Commit messages must have a subject line and may have body copy. These must be separated by a blank line.
  • The subject line must not exceed 50 characters
  • The subject line should be capitalized and must not end in a period
  • The subject line must be written in imperative mood (Fix, not Fixed / Fixes etc.)
  • The body copy must be wrapped at 72 columns
  • The body copy must only contain explanations as to what and why, never how. The latter belongs in documentation and implementation.
https://try.github.io/