Skip to content

Instantly share code, notes, and snippets.

View javabuddy's full-sized avatar

Javin Paul javabuddy

View GitHub Profile
import org.junit.Assert;
/**
* My solution of classical two sum problem in Java.
Problem - Given an array of
* integers, find two numbers such that they add up to
a specific target number.
*
* The method twoSum should return indices of the two numbers such that they add
* up to the target, where index1 must be less than index2.
@javabuddy
javabuddy / gist:ab8371c3e0d4c14303d511dc61fe21fe
Last active October 2, 2020 08:28
freejavascript.html
Hello All, If you want to learn JavaScript by yourself and looking for some free resources like [books](http://www.java67.com/2015/10/top-5-free-javascript-books-download-pdf-read-online.html), [sites](http://www.java67.com/2015/12/best-websites-to-learn-javascript-online.html), and [tutorials](http://www.java67.com/2017/07/6-ways-to-redirect-web-page-using-JavaScript-and-jQuery.html) then you have come to the right place.
In this article, I am going to share some of the best free JavaScript online courses you can join to learn [JavaScript](http://www.java67.com/2018/04/top-5-free-javascript-courses-to-learn.html) by yourself, on your own schedule and at your own place.
A lot of people are learning JavaScript and the number is only increasing by each passing day, and why not? It's the #1 web development language. It also has tons of useful frameworks and libraries like [Angular](http://www.java67.com/2018/01/top-5-free-angular-js-online-courses-for-web-developers.html), [React](http://www.java67.com/2018/02
@javabuddy
javabuddy / resources.html
Last active September 8, 2020 15:45
Free Programming Resources
Here is a list of some free programming resources like books, tutorial, and ocurses
https://medium.com/javarevisited/7-free-courses-to-learn-database-and-sql-for-programmers-and-data-scientist-e7ae19514ed2
https://medium.com/javarevisited/top-10-free-courses-to-learn-jenkins-docker-and-kubernetes-for-devops-in-2020-best-of-lot-62a0541ffeb3
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active April 20, 2024 16:52
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

import java.util.concurrent.CountDownLatch;
import java.util.logging.Level;
import java.util.logging.Logger;
/**Copied from http://javarevisited.blogspot.com/2012/07/countdownlatch-example-in-java.html#ixzz2VJFpQxHi<br>
*
* Java program to demonstrate How to use CountDownLatch in Java. CountDownLatch is
* useful if you want to start main processing thread once its dependency is completed
* as illustrated in this CountDownLatch Example
*
@javabuddy
javabuddy / HellGist.java
Last active December 12, 2015 06:09
HelloWorld in Github Gist
/**
* @link http://javarevisited.blogspot.sg/2011/11/run-java-program-from-command-prompt.html
* HelloWorld to Gist and Github
*/
public class HelloGist{
public static void main(String args[]){
System.out.println("Hello Gist");
System.out.println("Coding is so much fun with Gists");