📝 ASP.NET Core Quick Reference (Interview Prep) ⚙️ Core Basics
Cross-platform, open source, modular
Middleware pipeline: request → middleware → response
Built-in Dependency Injection (DI)
🏗 Project Setup
// Note: Idea from https://www.reddit.com/r/commandline/comments/nqf8an/probably_the_simplest_pomodoro_timer_cli_for_linux/ | |
const fs = require('fs'); | |
const path = require('path'); | |
function pomo() { | |
// Process command-line arguments | |
const args = process.argv.slice(2); | |
const durationMinutes = parseInt(args[0], 10); | |
const taskMessage = args.slice(1).join(' '); |
📝 ASP.NET Core Quick Reference (Interview Prep) ⚙️ Core Basics
Cross-platform, open source, modular
Middleware pipeline: request → middleware → response
Built-in Dependency Injection (DI)
🏗 Project Setup
How to Stand Out in an AI-Driven Industry
So, how do you ensure you’re not just another vibe coder lost in the sea of AI-assisted developers? Here are a few concrete steps to set yourself apart:
🔍 Understand the WHY – When AI generates code, take the time to dissect it. Why does it work? How does it compare to alternative solutions? What trade-offs does it introduce?
📝 Build Projects from Scratch – Don’t just copy-paste AI suggestions. Work on real-world projects where you have to make architectural decisions, optimize performance, and debug issues manually.
📖 Study Classic CS Topics – Algorithms, data structures, system design, and software architecture will always be valuable. Even as AI improves, these skills will keep you in demand.
Your code defines a producer method in the EmailServiceProvider
class that dynamically creates and provides an implementation of EmailService
based on the configuration (email.driver
). The choice of the email client to be used (e.g., SqsEmailServiceImpl
or LocalSmtpEmailServiceImpl
) is determined by the email.driver
value.
The produced EmailService
can be injected wherever it's needed within your application. Here's a breakdown of the steps:
First install java!
sdk install java 17.0.11-graal
Run:
./gradlew wrapper --gradle-version=8.1.1 --distribution-type=bin
/** | |
* Mass (bulk) insert or update on duplicate for Laravel 4/5 | |
* | |
* insertOrUpdate([ | |
* ['id'=>1,'value'=>10], | |
* ['id'=>2,'value'=>60] | |
* ]); | |
* | |
* | |
* @param array $rows |
For a lighter LaunchDarkly-style feature toggling service on AWS, you could focus on these essential features:
Feature Flag Management: Enable users to create, update, and delete feature flags, with options for boolean (on/off), multivariate (e.g., A/B tests), and gradual rollout.
Targeting Rules: Allow users to set rules based on attributes (e.g., user groups, environment, geographic location). This could involve assigning attributes to toggle specific users or cohorts.
Environment Support: Provide support for managing flags across multiple environments (e.g., development, staging, production), allowing easy promotion of configurations between them.
# Kill rails server and guard | |
bin/spring stop | |
brew services stop mysql | |
brew uninstall mysql | |
brew install [email protected] | |
brew link [email protected] --force | |
brew services start [email protected] | |
rbenv uninstall 2.3.3 | |
rbenv install 2.3.3 | |
gem install bundle |
function uniqid(prefix = "", random = false) { | |
const sec = Date.now() * 1000 + Math.random() * 1000; | |
const id = sec.toString(16).replace(/\./g, "").padEnd(14, "0"); | |
return `${prefix}${id}${random ? `.${Math.trunc(Math.random() * 100000000)}`:""}`; | |
}; |