© 2023 Hashnode
#snippets
import java.util.Scanner; public class SumOfTwoNumber { public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.println("Enter number 1"); int num1 = scan.nextInt(); S…
The Problem and Solution I had a problem. My job uses GitLab and I personally use GitHub. My team stores handy code snippets for daily development in GitLab and I know at some point, I want to transfe…
Snippet use Drupal\Core\Datetime\DrupalDateTime; use Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface; // ... // Use the DrupalDateTime object to modify (or parse) datetimes. $datetime = new DrupalDateTime('now'); // Set the t…
What is a Code Snippets Manager? A code snippet manager lets you create, share and reuse code snippets. A good code snippet manager is like a second memory that keeps track of all code snippets you ne…
Hello Devs 👋 This is Atul here. Many times, in our development workflow, we come across complex problems which require only one line of code to be solved. I've curated 39 code snippets so that you ca…
A few days ago I posted this article about how I set up my machine after re-installing OS. I forgot a few nice steps I do, and it was a pain to find out what I was missing, and all of them were relate…
This jQuery snippet makes a div clickable. HTML mocup <div class="tile tile-clickable"> <h2>Tile Title HERE</h2> <p>Duis Lorem mollit voluptate cillum velit est veniam mollit ex nulla et sunt.</p…
Binary ? Binary is how a computer stores information, with 1s and 0s, called bits. an example of this is with a light switch. 0 = light off 1 = light on via GIPHY Multiple bits As you get more and m…
Vs Code is a famous code editor developed by Microsoft, if you never used it before, the time is now, and who stoped to use, make sure about it after you read the tips!! hahaha Here you’r going to get…
Sharing code is the most common activity of developers. We share code in several places online. We share it in public or private spaces. We share it to showcase, to explain, to debug, to collaborate,…