Search results for #CodeExample
How to Receive the value? // Receiving data in TargetActivity val name = intent.getStringExtra("user_name") #AndroidDev #Bundle #Kotlin #CodeExample
🛠️ Practical example: Build a countdown timer in Java Swing using javax.swing.Timer. Clean, simple, effective. #CodeExample
// 3. Setup store const store = configureStore({ reducer: counterSlice.reducer }); #ReactJS #ReduxToolkit #CodeExample
// 2. Export actions export const { increment } = counterSlice.actions; #ReactJS #ReduxToolkit #CodeExample
4/ Basic Flow of Redux Toolkit // 1. Create a slice const counterSlice = createSlice({ name: 'counter', initialState: { value: 0 }, reducers: { increment: state => { state.value += 1 } } }); #ReactJS #CodeExample #ReduxToolkit
Adding a Pipeline named wait30Seconds #PipelineConfiguration #ApplicationDevelopment #wait30Seconds #CodingTutorial #SoftwareEngineering #DevOps #TechTips #ProgrammingGuide #AppDevelopment #CodeExample
2. Without cleanups, event listeners or timers can pile up, eating memory like a hungry gremlin. 🧀 Here’s an example: useEffect(() => { const timer = setInterval(() => console.log("Tick"), 1000); // Oops, no cleanup! }, []); #CodeExample #WebDevelopment
3. Example: A generic function to return the first item of an array: function firstItem<T>(arr: T[]): T | undefined { return arr[0]; } console.log(firstItem([1, 2, 3])); // 1 console.log(firstItem(["a", "b"])); // "a" #CodeExample #WebDevelopment
3. Example: function outer() { let count = 0; return function inner() { count++; console.log(count); }; } const increment = outer(); increment(); // 1 increment(); // 2 #CodeExample #WebDevelopment
a simple password generator as part of my projects while I learn, Generates the password and its entropy. #100daysofcode github.com/Jean-carje/Sec… #python #programmer #code #learnProgramming #programacion #pythonCode #secure #entropy #cryptography #passwords #codeExample
Does Your Copyright Notice Matter? The Surprising SEO and UX Impact of a Simple Footer Element seosiri.com/2025/03/copyri… #Copyright #CopyrightNotice #SEO #UX #UT #usertrust #code #codeexample #SEOsiri #momenulahmad
Here's how environment variables are often used in Python projects. Notice the repetition: 🔽 Code before using Environs: #Environment #Python #CodeExample
7/ Example of adding a key-value pair: Code in action: 📸 See how easy it is to extend our dictionary? 🗽 #CodeExample #PythonDictionaries
Here's how environment variables are often used in Python projects. Notice the repetition: 🔽 Code before using Environs: #Environment #Python #CodeExample
Here's how environment variables are often used in Python projects. Notice the repetition: 🔽 Code before using Environs: #Environment #Python #CodeExample
Here's how you can use truthiness in conditionals. In this snippet, a check determines if a number is falsy or truthy. Use this logic for cleaner code 🧹 #CodeExample
Here's how environment variables are often used in Python projects. Notice the repetition: 🔽 Code before using Environs: #Environment #Python #CodeExample
Here's how you can use truthiness in conditionals. In this snippet, a check determines if a number is falsy or truthy. Use this logic for cleaner code 🧹 #CodeExample
Here's how environment variables are often used in Python projects. Notice the repetition: 🔽 Code before using Environs: #Environment #Python #CodeExample
"1️⃣ Solidity Basics 🖥️ Store data on-chain with a simple contract! #SmartContracts #CodeExample"

西村友太郎 @codeexample
1 Followers 2 Following
code_example @codeexample2
0 Followers 1 Following