- Initialize Git repository
git init
- Create
.gitignore
file and add the following:node_modules/ *.env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import math | |
import time | |
import io | |
import boto3 | |
import paramiko | |
S3_BUCKET_NAME = "example-bucket" | |
FTP_HOST = "ftp.example.com" | |
FTP_PORT = 22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Docker Shortcuts | |
DOCKER BASICS | |
------------ | |
// list all images | |
docker images | |
// pull a specific image | |
docker pull image:tag |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://flukeout.github.io/ | |
https://regexcrossword.com | |
http://flexboxfroggy.com/ | |
https://cssbattle.dev/ | |
Promises Tricky Excercise | |
------------------------- | |
function f1(){ return Promise.resolve("f1")} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
Merged from https://github.com/joelparkerhenderson/git_commit_message and https://chris.beams.io/posts/git-commit/
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://try.github.io/ |
NewerOlder