Skip to content

Commit 6aff8bb

Browse files
add this weeks newsletter (#989)
* add this weeks newsletter * fix prettier issue
1 parent c55e43b commit 6aff8bb

File tree

5 files changed

+115
-6
lines changed

5 files changed

+115
-6
lines changed

app/(app)/alpha/settings/_client.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type { saveSettingsInput } from "./profile";
1111
import { saveSettingsSchema } from "./profile";
1212

1313
import { uploadFile } from "@/utils/s3helpers";
14-
import { user } from "@/server/db/schema";
14+
import type { user } from "@/server/db/schema";
1515

1616
function classNames(...classes: string[]) {
1717
return classes.filter(Boolean).join(" ");

app/(app)/hub/[community]/_CommunityPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { trpc } from "@/utils/trpc";
1414
import { toast } from "sonner";
1515
import { useRouter, useSearchParams } from "next/navigation";
1616
import { PlusSmallIcon, PencilIcon } from "@heroicons/react/20/solid";
17-
import { event, r_s_v_p, user } from "@/server/db/schema";
17+
import type { event, r_s_v_p, user } from "@/server/db/schema";
1818

1919
function getDomainFromUrl(url: string) {
2020
const domain = url.replace(/(https?:\/\/)?(www.)?/i, "");

app/(app)/hub/[community]/events/[event]/_EventPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { trpc } from "@/utils/trpc";
1313
import { toast } from "sonner";
1414
import { notFound, useRouter, useSearchParams } from "next/navigation";
1515
import { PencilIcon } from "@heroicons/react/20/solid";
16-
import { r_s_v_p, user } from "@/server/db/schema";
16+
import type { r_s_v_p, user } from "@/server/db/schema";
1717

1818
function getDomainFromUrl(url: string) {
1919
const domain = url.replace(/(https?:\/\/)?(www.)?/i, "");
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
Tue, Aug 13, 2024 • Niall Maher
2+
3+
# Stop self-selecting out of opportunities!
4+
5+
**Stop self-selecting out of opportunities!**
6+
7+
So many people see a dream job, a life, a dream girl or a guy, and before they even get close, they say, "no, that's not for me; that's for other people."
8+
9+
"I'm not smart enough."
10+
11+
"I'm not experienced enough."
12+
13+
"In a few years, that's what I will do!"
14+
15+
_But why?_
16+
17+
Yes, you know all of your flaws (of some which you have fabricated in your head), but the fun part is nobody else does.
18+
19+
If you dream of a promotion or are generally frustrated with your progress, you have to start sometime.
20+
21+
**Why not try today?**
22+
23+
Yes, you will fail, but you will also surprise yourself.
24+
25+
It's an overused quote, but it's true; "you miss 100% of the shots you don't take".
26+
27+
I made significant steps in my career early and quickly by showing up for interviews for which I was sure I was unqualified.
28+
29+
I went in with the attitude of "let's see what they ask a Senior Engineer," and then I could learn that.
30+
31+
But something extraordinary started happening.
32+
33+
**I got offers.**
34+
35+
That gave me the confidence to reach for larger opportunities than I would have usually self-selected myself from and take much more significant steps towards my greater goals.
36+
37+
**Do it today.**
38+
39+
Don't just read this and get a momentary confidence boost; live it!
40+
41+
You will hit plenty of no's, bumps, and bruises on the way, but the occasional yes for something we didn't think was possible will make it all worth it, I promise.
42+
43+
## Codú Articles
44+
45+
**[next-safe-action: Type-Safe Server Actions Made Easy (3 min)](https://www.codu.co/articles/next-safe-action-type-safe-server-actions-made-easy-kaayfrkk)**
46+
47+
Ready to take your Server Actions game to the next level? Let's dive into next-safe-action and see how it can make your life easier (and your code safer)!
48+
49+
**[Building a Simple Read Time Calculator in JS/TS (3 min)](https://www.codu.co/articles/building-a-simple-read-time-calculator-in-js-ts-fpmsy_hy)**
50+
51+
I've been tinkering as usual and thought I'd share a cool little script I created---a read-time calculator that works with HTML and Markdown.
52+
53+
**[Python Type Safety at Compile Time (2 min)](https://www.codu.co/articles/type-safety-at-compile-time-ezhfk-rm)**
54+
55+
Achieving type safety at compile time in a superset of Python.
56+
57+
**[Slugify Your Article Names with TS/JS (2 min)](https://www.codu.co/articles/slugify-your-article-names-with-ts-js-tzexp4qf)**
58+
59+
Need to create neat, clean URLs for your articles or blog posts? Today, we're diving into slugification (yes, that's a word now).
60+
61+
**[Preview an Image Before it is Uploaded - React.js (2 min)](https://www.codu.co/articles/preview-an-image-before-it-is-uploaded-react-js-nv9kprq4)**
62+
63+
Ever wanted to show your users a sneak peek of their image before they upload it? Here's how:
64+
65+
**[Routing in .NET (5 min)](https://www.codu.co/articles/routing-in-net-1_6djwo9)**
66+
67+
Routing is one of those fundamental pieces that any .NET developer needs to master.
68+
69+
## Other Articles/Resources
70+
71+
**[How to Build Anything Extremely Quickly (4 min)](https://learnhowtolearn.org/how-to-build-extremely-quickly/)**
72+
73+
Don't just read this article and move on. Go out and do this for the very next thing you make so you can get in the habit of doing it.
74+
75+
**[React Native & Expo Router Course -- Build a Meditation App (video)](https://www.youtube.com/watch?v=9UKCv9T_rIo)**
76+
77+
Improve your React Native skills by building a meditation app using Expo. Learn to utilize TypeScript, React, NativeWind, React Native, and Expo to develop a simple mobile app.
78+
79+
**[Interview Warmup by Google (tool)](https://grow.google/certificates/interview-warmup/)**
80+
81+
A quick way to prepare for your next interview. Practice key questions, get insights about your answers, and get more comfortable interviewing.
82+
83+
**[We can now transition to and from display: none (video)](https://www.youtube.com/watch?v=vmDEHAzj2XE)**
84+
85+
Something all CSS animators have wanted for a long, long time...
86+
87+
**[Common Sense Refactoring of a Messy React Component (23 min)](https://alexkondov.com/refactoring-a-messy-react-component/)**
88+
89+
A deep dive into how to refactor your messy React components.
90+
91+
**[Perplexity.ai (tool)](https://www.perplexity.ai/)**
92+
93+
An AI-powered search engine was recommended. Gives me some excitement about SearchGPT.
94+
95+
## Something I've been enjoying
96+
97+
**[Pattern Breakers - The Secrets Behind the World's Most Successful Start-ups](https://amzn.to/4fHnRzs)**
98+
99+
I read this on a lazy day last week.
100+
101+
This book dives into the unconventional strategies of folks who've crushed it in their fields by ditching the usual playbook. It's packed with real-world examples that'll get your wheels turning.
102+
103+
Whether you're stuck in a rut or just hungry for some inspiration, give it a read. Trust me, it might just be the kick you need to shake things up!
104+
105+
**If you have any ideas or feedback, reply to this email.**
106+
107+
Thanks, and stay awesome,
108+
109+
Niall
110+
111+
_Founder @ [Codú](https://www.codu.co/?ref=newsletter)_

server/db/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ const drizzlelogger: Logger = {
2121
},
2222
};
2323

24-
const connection =
25-
globalForDb.connection ??
26-
postgres(env.DATABASE_URL);
24+
const connection = globalForDb.connection ?? postgres(env.DATABASE_URL);
2725

2826
if (env.NODE_ENV !== "production") globalForDb.connection = connection;
2927

0 commit comments

Comments
 (0)