DEV Community

# snippets

Posts

đź‘‹ Sign in for the ability to sort posts by relevant, latest, or top.
Snippet: Change timezone for DateTime object

Snippet: Change timezone for DateTime object

Reactions 7 Comments
1 min read
Dark Theme Toggle - How to create a dark mode switch in a few lines of JS + CSS

Dark Theme Toggle - How to create a dark mode switch in a few lines of JS + CSS

Reactions 11 Comments
2 min read
Adding an executable target to a Rust library

Adding an executable target to a Rust library

Reactions 6 Comments
2 min read
Unleash the power of bookmarklets

Unleash the power of bookmarklets

Reactions 6 Comments
2 min read
What is a Smart Code Snippet?

What is a Smart Code Snippet?

Reactions 4 Comments
3 min read
Snipt: Search Engine for Code Snippets

Snipt: Search Engine for Code Snippets

Reactions 4 Comments
2 min read
Ruby VS Code Snippets

Ruby VS Code Snippets

Reactions 6 Comments 1
4 min read
<details> and <summary>: a native HTML accordion

<details> and <summary>: a native HTML accordion

Reactions 5 Comments
3 min read
Transforming VS Code Snippets

Transforming VS Code Snippets

Reactions 6 Comments
6 min read
VSCode snippet for IE11-only CSS and SCSS

VSCode snippet for IE11-only CSS and SCSS

Reactions 5 Comments
3 min read
Create color console in vscode snippets

Create color console in vscode snippets

Reactions 6 Comments
1 min read
Boost your productivity with Code Attendant.

Boost your productivity with Code Attendant.

Reactions 6 Comments
1 min read
Vim Tips: Snippets without plugins

Vim Tips: Snippets without plugins

Reactions 6 Comments
2 min read
How to use named parameters in JPA queries

How to use named parameters in JPA queries

Reactions 6 Comments
1 min read
How to use named queries with JPA and JPQL

How to use named queries with JPA and JPQL

Reactions 6 Comments
1 min read
Create Your Own VSCode Snippets

Create Your Own VSCode Snippets

Reactions 7 Comments
4 min read
Pagination with JPA queries

Pagination with JPA queries

Reactions 5 Comments
1 min read
How to delete a kubernetes deployment with kubectl

How to delete a kubernetes deployment with kubectl

Reactions 6 Comments
1 min read
Command to list docker containers

Command to list docker containers

Reactions 4 Comments
1 min read
The Easiest Way To Share And Store Snippets of Code

The Easiest Way To Share And Store Snippets of Code

Reactions 5 Comments
4 min read
How to define and use variables in sass

How to define and use variables in sass

Reactions 6 Comments
1 min read
How to set focus on angular material autcomplete input field

How to set focus on angular material autcomplete input field

Reactions 6 Comments
1 min read
How to pass text as input in a POST request body with Jax-RS

How to pass text as input in a POST request body with Jax-RS

Reactions 6 Comments
1 min read
How to start nodemon with custom port

How to start nodemon with custom port

Reactions 6 Comments
1 min read
How to delay an http response in ExpressJS

How to delay an http response in ExpressJS

Reactions 5 Comments 1
1 min read
How to share code snippets in 2022

How to share code snippets in 2022

Reactions 2 Comments
2 min read
How to connect to SQL Plus in oracle xe running in a docker container

How to connect to SQL Plus in oracle xe running in a docker container

Reactions 5 Comments
1 min read
How to read file from test resources in java unit test

How to read file from test resources in java unit test

Reactions 6 Comments
1 min read
Use VS Code snippets to generate Markdown front matter

Use VS Code snippets to generate Markdown front matter

Reactions 27 Comments 1
5 min read
All snippets you need for GraphQL and JavaScript

All snippets you need for GraphQL and JavaScript

Reactions 6 Comments
2 min read
How to disable Angular's build-in sanitization for an URL

How to disable Angular's build-in sanitization for an URL

Reactions 6 Comments 2
1 min read
Angular material dialog example

Angular material dialog example

Reactions 5 Comments
2 min read
How to use routerLink in Angular to specify value of parameter in url

How to use routerLink in Angular to specify value of parameter in url

Reactions 6 Comments
1 min read
Snippets VSCode: Rapidito y con buena letra.

Snippets VSCode: Rapidito y con buena letra.

Reactions 5 Comments
7 min read
Find safe and reusable code within your IDE in seconds

Find safe and reusable code within your IDE in seconds

Reactions 6 Comments
6 min read
How to highlight liquid code in Jekyll

How to highlight liquid code in Jekyll

Reactions 2 Comments
1 min read
How to count newest entries created in an oracle database

How to count newest entries created in an oracle database

Reactions 6 Comments 2
1 min read
How to renew Let's Encrypt ssl certificate with certbot for nginx in the command line

How to renew Let's Encrypt ssl certificate with certbot for nginx in the command line

Reactions 5 Comments
3 min read
JavaScript copy to clipboard function (no jQuery)

JavaScript copy to clipboard function (no jQuery)

Reactions 2 Comments
4 min read
How to lazy load modules in Angular with loadChildren

How to lazy load modules in Angular with loadChildren

Reactions 2 Comments
2 min read
How to store result from async pipe in angular

How to store result from async pipe in angular

Reactions 5 Comments
2 min read
How to see remote url in git

How to see remote url in git

Reactions 3 Comments
2 min read
How to find an entity in jpa with primary key

How to find an entity in jpa with primary key

Reactions 2 Comments
1 min read
How to access path parameters in angular router

How to access path parameters in angular router

Reactions 5 Comments
2 min read
How to create a MongoDB full text index

How to create a MongoDB full text index

Reactions 6 Comments
2 min read
SQL Select with IN clause from list with JPA

SQL Select with IN clause from list with JPA

Reactions 4 Comments
1 min read
How to set query parameters in angular rest call

How to set query parameters in angular rest call

Reactions 4 Comments
1 min read
How to get date or datetime from string in java

How to get date or datetime from string in java

Reactions 5 Comments
1 min read
Force null value check on field mapping in Mapstruct

Force null value check on field mapping in Mapstruct

Reactions 6 Comments
1 min read
Get user input value from input box in visual studio code

Get user input value from input box in visual studio code

Reactions 6 Comments
1 min read
Python: Comprehensions

Python: Comprehensions

Reactions 2 Comments
2 min read
Python: Data Types

Python: Data Types

Reactions 2 Comments
3 min read
Javascript runtime interview question

Javascript runtime interview question

Reactions 6 Comments
2 min read
Higher order functions and closures example in Javascript

Higher order functions and closures example in Javascript

Reactions 7 Comments
1 min read
Hoisting with closures example

Hoisting with closures example

Reactions 5 Comments
1 min read
Javascript call by value or by reference, actually by sharing

Javascript call by value or by reference, actually by sharing

Reactions 7 Comments 7
3 min read
VS Code Snippets – How to Code Easier and Faster?

VS Code Snippets – How to Code Easier and Faster?

Reactions 8 Comments
6 min read
JavaScript some and every method

JavaScript some and every method

Reactions 4 Comments
2 min read
Python code snippets & resources for Developers

Python code snippets & resources for Developers

Reactions 10 Comments
1 min read
How To Add Custom Code Snippets in VS Code

How To Add Custom Code Snippets in VS Code

Reactions 18 Comments 4
3 min read
loading...