Skip to content

Instantly share code, notes, and snippets.


1. What is a media query breakpoint?

A media query breakpoint is a specific screen width at which a website’s layout or styling changes to provide a better user experience on different devices.

Example:

@media screen and (max-width: 768px) {

1. What is a universal selector?

The universal selector (*) in CSS targets every element on the web page.

Example:

* {
    margin: 0;
    padding: 0;

Prevention of Sexual Harassment


1. What kinds of behaviour cause sexual harassment?

Sexual harassment includes any unwelcome behavior of a sexual nature that makes someone feel offended, humiliated, or intimidated. This may include:

  • Inappropriate touching, patting, or brushing against a person

Introduction to sed

sed (Stream Editor) is a powerful Unix utility used for parsing, transforming, and filtering text in a file or input stream. It works line-by-line and is commonly used in shell scripts for automated editing of configuration files, logs, and other text data. sed supports advanced operations like substitution, deletion, insertion, and text manipulation using regular expressions.

Top 10 sed Commands with One-Line Purpose

Command Purpose
sed 's/old/new/' file.txt Replace first occurrence of 'old' with 'new' in each line.
sed 's/old/new/g' file.txt Replace all occurrences of 'old' with 'new' in each line.

Tiny Habits

1. Tiny Habits - BJ Fogg

The most interesting idea was starting with small, simple habits and adding them to things you already do. This makes habits easier and more natural.

2. Tiny Habits by BJ Fogg - Core Message

The B = MAP formula (Behavior = Motivation + Ability + Prompt) says that a habit happens when motivation and ability meet the right trigger. Getting these three right makes a habit easier to do.

  • M: Motivation
  • A: Ability

Grit and Growth Mindset

1. Grit

Grit means having the passion and perseverance to stick with long-term goals, even when progress is slow or difficult. Success depends more on consistent effort than on raw talent.

2. Introduction to Growth Mindset

A growth mindset is the belief that abilities and intelligence can be developed through Dedication,HardWork and Focus.

Linux Command Line Drill1

1.  mkdir hello                        # Creates a directory named 'hello'  
2.  cd hello                           # Changes the current directory to 'hello'

3.  mkdir five                         # Creates a directory named 'five' inside 'hello'
4.  mkdir one                          # Creates a directory named 'one' inside 'hello'

5.  cd five                            # Changes the current directory to 'five'