Code Tactics
前往频道在 Telegram
ur portal to the freshest tech stuff! ⚡️ What I drop here’s shit I need, love, think about... not just for u 😁
显示更多513
订阅者
无数据24 小时
-37 天
-330 天
帖子存档
513
So they're saying NextJS got vulnerability and suggesting everyone to update it ASAP
23 3月 2025, 10:39
513
Repost from Shega
Ethiopia’s 7-Month-Old Rising Star, Better Auth, Joins Y Combinator, Secures $500,000
Better Auth, a 7-month-old open-source authentication framework for TypeScript, developed by two Ethiopians, has been selected for Y Combinator's Spring 2025 Cohort, securing $500,000 in seed funding.
https://shega.co/news/ethiopias-7-month-old-rising-star-better-auth-joins-y-combinator-secures-500000
22 3月 2025, 08:38
513
// create vercel.json
{
"version": 2,
"builds": [
{
"src": "bot/main.py",
"use": "@vercel/python",
"config": {
"runtime": "python3.9"
}
}
],
"routes": [
{
"src": "/(.*)",
"dest": "bot/main.py"
}
]
}22 3月 2025, 04:39
513
2day ago me and one guy asked to solve one DSA problem in python(just like Leetcode problem). The answer was simple but understanding its question is quite hard.
I forget what the question is but this was my solution:
import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
first_name = input()
first_health = int(input())
first_attack = int(input())
second_name = input()
second_health = int(input())
second_attack = int(input())
# Write an answer using print
# To debug: print("Debug messages...", file=sys.stderr, flush=True)
if (first_health + first_attack) > (second_health + second_attack):
print(first_name)
elif (first_health + first_attack) < (second_health + second_attack):
print(second_name)
else:
print("Draw")
Comments are provided by the system. It's straight forward, right? I got 100% point with this. But, ... what that guy did was kinda unbelievable.🤯
See below code:
I,i=input,int
a=I()
b=i(I())
c=i(I())
d=I()
I(["Draw",a,d][min(max(b+c-i(I())-i(I()),-1),1)])
He also got 100% mark.🤭😅
The thing is, I used variables as they provided by the system. But, he used did something no one expected lol.
You'll learn something from both...22 3月 2025, 03:01
513
GitHub Action supply chain attack exposed secrets in 218 repos
https://ift.tt/UbZysp7
20 3月 2025, 11:35
513
Critical GitHub Attack 🥶🥶
https://www.schneier.com/blog/archives/2025/03/critical-github-attack.html
20 3月 2025, 11:27
513
For Vue/Nuxt developers
https://ui-libs.vercel.app/
#vue@CodeTactics #nuxt@CodeTactics
20 3月 2025, 10:13
513
The P vs NP problem is a famous question in computer science:
**`can every problem whose solution is quickly verified (NP) also be quickly solved (P)?`** 🤔
Key Definitions:
• P (Polynomial Time): Solvable by a fast algorithm (like sorting).
• NP (Nondeterministic Polynomial Time): A solution can be checked quickly (like Sudoku).
The Question:
Does P = NP? If so, easily verifiable problems are also easily solvable. Most think P ≠ NP. 🤭
What If...?
• P = NP: Cryptography CRUMBLES! 🔓 Passwords are easy to crack. Big breakthroughs in logistics, drug design, etc.
• P ≠ NP: "Hard" problems stay hard for regular computers. Encryption stays secure. 🔒
Examples:
• NP-complete: Traveling Salesman, solving equations. If we solve ×one× of these quickly, we prove P = NP.
• Sudoku: Hard to solve, easy to check if you're right! 🧩
Unsolved! There's a $1 million prize! 💰 The answer would change AI, economics, everything. 🌍More Info: • Wikipedia • Stack Overflow Explanation
20 3月 2025, 07:58
513
Asked:
When we delete pictures, where do they go?😂 What's your answer? 🤭
19 3月 2025, 13:20
513
So Session App is gaining popularity around cyber security experts. It's considered as the secured and decentralized messenger.
I downloaded it and I got no one to chat with 😂
But, I'll use it to store my notes LoL 😆
19 3月 2025, 11:48
