Articles by Tag #snippet

Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!

Quick Snippets — A Small Tool for Big Focus

Built for developers who hate interrupting their flow. Future update here dev-dialect When you're...

Learn More 0 0Dec 1

Class in java

Class: A class is a group of objects which have common properties. It is a blueprint or...

Learn More 1 0Aug 5

Rails: passing data to the browser with <meta>

I'll be posting code snippets like this -- solutions to little problems that I come across in...

Learn More 0 0Jan 5

Understanding Hoisting: How JavaScript Handles Declarations

Example 1: Variable Hoisting with var console.log(x); // Output: undefined var x =...

Learn More 5 0Jul 29

2. Spread Operator

const numbers = [1,2,3] console.log(numbers) // [1,2,3] console.log(...numbers) // 1,2,3 ...

Learn More 0 0Aug 11

MAX & MIN, Second Largest

let arr = [8, 3, 2, 5, 4, 7, 6, 1] var maxValue = arr[0] var minValue = arr[0] var secondLargest:...

Learn More 0 0Jul 13

Constructor

package dynamic; public class Construct { String model; int year; public Construct(){ ...

Learn More 0 0Jul 11

2D array (matrix) in Swift, along with how to access, modify, and iterate through it.

✅ 2D Array in Swift // Define a 2D array (3x3 matrix) var matrix: [[Int]] = [ [1, 2, 3], ...

Learn More 0 0Jul 13

Swift program to convert an integer to a Roman numeral — a classic LeetCode problem: "Integer to Roman" (Problem #12).

func intToRoman(_ num: Int) -&gt; String { let romanMap: [(symbol: String, value: Int)] = [ ...

Learn More 0 0Jul 13

Single Inheritence

//parent class package Sangam; public class Groceries { public int groceries_money = 100; ...

Learn More 0 0Jul 9

Ever notice your AWS CDK stacks start to look… the same?

Buckets, Lambdas, CloudFront, over and over. We walk through how to abstract a static site pattern...

Learn More 0 0Aug 12

LeetCode #121. Best Time to Buy and Sell Stock

Time Complexity: O(n) - single pass through array Space Complexity: O(1) - only using constant extra...

Learn More 0 0Jul 30

DYNAMIC BINDING

//parent class package dynamic; public abstract class Parent { public static void main(String[]...

Learn More 0 0Jul 10

Binary Search - Check rotated sorted array

Key points : 1) Find count of pivot elements 2) Edge case - check last element &gt; first element ...

Learn More 0 0Jun 28

Find out max and min value in array

package maxArray; public class ArrayMax { public static void main(String[] args) { int[] arr =...

Learn More 0 0Jul 25

bindableとno-unnecessary-condition

2025-03-29 let titleError = $state(false); if (titleError) { return...

Learn More 0 0Aug 17

Looping-based placement questions

1) 1 1 1 1 1 using for loop in Javascript &lt;script&gt; for(i=0;i&lt;=4;i++){ ...

Learn More 0 0Aug 29

Digital Clock Html Css Javascript

A post by Muzammil Ansari

Learn More 0 0Jul 20

CodeSnap

A post by Mauricio Garay Veas

Learn More 0 0Aug 3

from docx import Document from docx.shared import Pt from docx.enum.text import WD_PARAGRAPH_ALIGNMENT # Membuat dokumen Word doc = Document() # Judul Perusahaan doc.add_heading("CV. CIPTO AGUNG", level=1) doc.add_paragraph("Perusahaan Kayu Jati\nPenyewa

A post by Bagus Kurniawan

Learn More 0 0Jul 28

LED frequency manipulation via COM port

`#define LED_PIN 12 int blinkDelay = 500; int LEDState = LOW; void setup() { ...

Learn More 0 0Jul 23

Golang Binary Compile arm64

Basic cross-compile GOOS=linux GOARCH=arm64 go build -o nama_sistem_arm64 main.go Enter...

Learn More 0 0Aug 22

Nested for loop program:

1)To print the pattern program on alphabet: A A B A B C A B C D public class Twenty{ public static...

Learn More 0 0Aug 9

test article

Uses Markdown (same as GitHub). You can use fenced code blocks: ```npm install express ```

Learn More 0 0Aug 20

Sharing some code <3

`&lt;!--Fixes: Har prövat med JS. Den accepterar inte pilarna.--&gt; &lt;?php include...

Learn More 0 1Aug 13

hhhh

puts 'hell0' Enter fullscreen mode Exit fullscreen mode

Learn More 0 0Aug 9

test1

alert("You've been pwned!");

Learn More 0 0Jul 27

Your Java Strings are a MESS! 🤢

Are you tired of ugly, unreadable multi-line strings in your Java code? Stop the mess of endless plus...

Learn More 0 0Aug 12

they coming sit down they coming t he y com

WritePostFirstlyWithOutHeadTitleTx(...[

Learn More 0 0Jun 28

CODEPEN

https://codepen.io/pen?template=RNWGwKX

Learn More 0 0Jul 25