en
Feedback

Don't get caught by a cheater! Telemetrio finds and tags such channels 👉 If you want to see the tag, subscribe

Everything About code

Everything About code

Open in Telegram

Admin : @Samandar_Anorboyev Hello everyone you can learn interesting facts about coding in this channel 💻 Perfluence

Show more
9 323
Subscribers
-524 hours
-337 days
-9130 days
Posts Archive
VS Code 1.149: Preview PDFs without leaving your editor The Dec 2 stable release adds a built-in, read-only PDF preview. Open
VS Code 1.149: Preview PDFs without leaving your editor The Dec 2 stable release adds a built-in, read-only PDF preview. Open a project’s API spec next to the code, search the PDF, or jump to a section from its outline. Reviewing a changed PDF? Open it from Source Control to compare the two versions side by side. Official release notes
05 Dec, 22:57

CSS tip: Fill the card or show the whole photo? Give both images the same 160 × 200 box. One fills it; the other shows the entire image.
.cover, .contain {
  width: 160px;
  height: 200px;
  background: #eee;
}
.cover   { object-fit: cover; }
.contain { object-fit: contain; }
cover fills the box without stretching, but can crop the photo. Use it for edge-to-edge thumbnails. contain keeps the whole image visible without stretching, but may leave empty space. Use it when the full product or logo needs to stay in view.
05 Dec, 09:05

JavaScript tip: One emoji can have a length of five .length counts UTF-16 code units, not the characters a reader sees. For a user-facing character counter, count grapheme clusters instead:
const text = "👩‍💻";
const segmenter = new Intl.Segmenter("en", {
  granularity: "grapheme"
});

console.log(text.length); // 5
console.log([...segmenter.segment(text)].length); // 1
Use the second count for a UI message like “characters remaining” when you want a joined emoji to count as one. ECMAScript spec: Intl.Segmenter
04 Dec, 22:57

SQL tip: COUNT(*) and COUNT(column) answer different questions Imagine a report with three revenue entries: 120, NULL, and 0.
WITH reports(revenue) AS (VALUES (120), (NULL), (0))
SELECT COUNT(*) AS total_rows,
       COUNT(revenue) AS reported
FROM reports;
Result: total_rows = 3, reported = 2. COUNT(*) counts rows. COUNT(revenue) counts rows where revenue isn’t NULL. Zero still counts: it’s a known value, not a missing one. SQLite docs
04 Dec, 09:05

Python tip: Read the whole file extension With assets.tar.gz, .suffix gives you just .gz. Use .suffixes if your code needs to recognize .tar.gz as a compound extension.
from pathlib import PurePath

file = PurePath("assets.tar.gz")
print(file.suffix)    # .gz
print(file.suffixes)  # ['.tar', '.gz']
PurePath works with the path string. The file doesn’t need to exist. Python docs
03 Dec, 23:05

Pair two lists with Python’s zip() zip() pairs items by position. Use it when you have two parallel lists, like names and sco
Pair two lists with Python’s zip() zip() pairs items by position. Use it when you have two parallel lists, like names and scores.
names = ["Ada", "Lin", "Kai"]
scores = [98, 87, 92]
print(list(zip(names, scores, strict=True)))
By default, zip() stops at the shorter list. If both lists should match, strict=True raises an error when their lengths differ (Python 3.10+). Python docs
03 Dec, 03:38

🎯 CSS Quiz: Which dot is ahead? Both dots start together and move 100 px to the right in one second. Which dot has travelled farther after 0.25 seconds?
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(100px); }
}

.dot-a { animation: slide 1s linear both; }
.dot-b { animation: slide 1s ease-in-out both; }
👇 Make a guess before checking the comments.
02 Dec, 23:54

⚡ JavaScript Quiz: Why did mute turn the volume back up? Zero means the user muted the app. What do these two lines print?
const savedVolume = 0;
console.log(savedVolume || 50); // ?
console.log(savedVolume ?? 50); // ?
👇 Make a guess before you check the comments.
02 Dec, 03:04

🐍 Python Quiz: Why did the first item stick around? What does the second print() show?
def add_task(task, tasks=[]): tasks.append(task) return tasks print(add_task("Study")) # ['Study'] print(add_task("Design")) # ?
02 Dec, 02:54

DSFASDLFIJHBASLJHDBFLIu @samandar_anorboyev
06 Aug, 09:31
06 Aug, ~09:32

Which programming language do we use ?
Anonymous voting
03 Aug, 06:53

sticker.webp0.10 KB
01 Aug, 09:40

WHERE IS ACTIVE GUYS
01 Aug, 09:40

⌨️ Useful CSS grid cheat sheet You’ve seen this many times. But practice makes perfect. @everythingaboutcode
⌨️ Useful CSS grid cheat sheet
You’ve seen this many times. But practice makes perfect.
@everythingaboutcode
01 Aug, 04:19

sticker.webp0.10 KB
30 Jul, 06:12
30 Jul, ~06:13

Our team has developed lmdb-php, which we would like to introduce to you. It is a PHP 8+ extension that allows developers to use LMDB directly within PHP applications. In other words, it enables PHP projects to benefit from a fast, file-based key-value storage system without relying on a separate database server. Repository link 👉 https://github.com/yetimdasturchi/php-lmdb P.S. For those who might say, "But SQLite already exists": SQLite is a relational database that provides features such as tables, columns, SQL queries, indexes, joins, and constraints. In other words, it is designed for structured data management. LMDB, on the other hand, is a key-value database. It has no SQL engine and no table-based data model. As a result, it is much simpler and, in many cases, significantly faster. It is especially useful for caches, configuration storage, indexes,
30 Jul, 06:03

Many projects need small and fast storage, but setting up a separate database server for this purpose often creates unnecessa
Many projects need small and fast storage, but setting up a separate database server for this purpose often creates unnecessary overhead. Projects such as LMDB were designed to solve this problem. It is an extremely fast key-value database that does not require a server and operates directly on local files. LMDB was originally developed as part of the OpenLDAP project. Its main purpose was to provide OpenLDAP with a fast, reliable storage backend that supported transactions. Later, LMDB evolved into a widely used standalone embedded database. Our team has developed lmdb-php, which we would like to introduce to you. It is a PHP 8+ extension that allows developers to use LMDB directly within PHP applications. In other words, it enables PHP projects to benefit from a fast, file-based key-value storage system without relying on a separate database server. Repository link 👉 https://github.com/yetimdasturchi/php-lmdb P.S. For those who might say, "But SQLite already exists": SQLite is a relational database that pr
30 Jul, 06:02

wazzuuuuuup
30 Jul, 05:50

wazzuuup........
30 Jul, 05:49
30 Jul, ~05:50

We use cookies to improve your browsing experience.
By clicking “Accept all”, you agree to the cookie policy.