🌐 Day 16/30 — Git Tip
A remote connects your local repository to another repository, such as one hosted on GitHub.
List configured remotes:
git remote -v
Add a remote:
git remote add origin REPOSITORY_URL
origin is a common name for the default remote.
🚀 Boost Your Coding Speed TODAY!
#DevTip Monday: Must-Know Shortcut
Tired of endless clicking? Use `Ctrl + D` in VS Code to quickly select the next occurrence of a word. Fast, simple, and super effective!
#Productivity#CodeFaster#DevHacks#WebDev#Programming#CodeLife#TechTips#Developer
👉 What’s YOUR secret shortcut? Share it in the comments and inspire the community!
Stop juggling pip, venv, pyenv, and poetry.
uv does it all, project setup, deps, Python versions. 10-100x faster.
uvx runs tools in isolated, cached environments, no global install.
⚠️ Verify sources first.
uv docs:
#CiscoDevNet#DevTip
🧪Unit, integration, e2e #tests.
Different value, different complexity.
Imagine running e2e before unit tests, and then finding that one of the unit tests fails: you've just lost time running e2e tests.
Remember to run tests in order of complexity
#devtip
#DevTip 21/31
Using a snippet manager with text-expansion saves load of time. There are a bunch – I use Dash by @kapeli ( coupled with Alfred for powerful snippet library at my fingertips.
Here's a quick look at text-expansion and placeholders:
🔧 NVM #DevTip: VS Code terminal showing a different Node version than your system terminal?
Add this to your .zshrc:
👉 "nvm use default"
🎯 Boom! Now both terminals stay in sync with your default Node version. No more version mismatches!
🚀 Advanced Spring Boot Tip 🚀
Use @Validated and @ConfigurationProperties with javax.validation annotations. Catch misconfigured properties early at startup, not at runtime. 🔥
#SpringBoot#Java#DevTip
#DevTip 19/31
Dump information to a separate log file for some quick and easy debugging. This one contains a PHP class for you to copy/paste 👌🚀
More info 👉
#DevTip 24/31
If you get snagged by the Limit Login Attempts plugin you can unblock yourself using SQL! It's not uncommon for me to cock up the login and get myself blocked...😂
🥳🚀🔥
More info 👉
#DevTip: Doing equality check of floating numbers is problematic on almost any language (#PHP, #JavaScript). Workaround is to use machine epsillon
const ep = 0.00001;
function isEqualFloat(a, b) {
return Math.abs(a - b) < ep;
}
#100DaysOfCode#CodeNewbies
#DEVtip: Desde #ES6 puedes *importar* en el #frontend scripts #JS desde otros scripts (o módulos).
Es muy simple y útil. La clave está en indicar 𝚝𝚢𝚙𝚎 = "𝚖𝚘𝚍𝚞𝚕𝚎" al incluir el <𝚜𝚌𝚛𝚒𝚙𝚝/> que hace el 𝚒𝚖𝚙𝚘𝚛𝚝, e indicar 𝚎𝚡𝚙𝚘𝚛𝚝 en el otro. #DEV#JSfullstack