Skip to content

Instantly share code, notes, and snippets.

View sumanssaurabh's full-sized avatar
🏠
Working from home

Suman Saurabh sumanssaurabh

🏠
Working from home
View GitHub Profile
@sumanssaurabh
sumanssaurabh / readme.md
Created March 31, 2019 22:36 — forked from ionurboz/readme.md
Vanilla JS equivalents of jQuery methods

jQuery vs. JavaScript

Events

// jQuery
$(document).ready(function() {
  // code
})
@sumanssaurabh
sumanssaurabh / bobp-python.md
Created March 31, 2019 22:41 — forked from SicHistory/bobp-python.md
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens
@sumanssaurabh
sumanssaurabh / Java cheatsheet.md
Created March 31, 2019 22:43 — forked from Adria87/Java cheatsheet.md
[Java cheatsheet] #java
Operation Code
New List List<Integer> x = new ArrayList<Integer>();
Copy List List<Integer> x = new ArrayList<Integer>(y);
Add an element to the List x.add(element)
Get an elemenet from the List x.get(index)
Clear the list x.clear()
New HashMap HashMap<Integer, String> x = new HashMap<Integer, String>();
Add element to the map x.put(key, value)
Get an element from the map x.get(key)

Java

Collection of Java & Related Codes,Concepts

##### Java.com
I. Annotations
II.Md5 Hashing
@sumanssaurabh
sumanssaurabh / 00 - Basic.md
Created March 31, 2019 22:46 — forked from amelieykw/00 - Basic.md
[Java Interview Preparation] #java #interview
  1. Java Identifiers
  2. Data types
  3. How to define our own data type in java(enum)
  4. Variables
  5. Scope of Variables
  6. Loops in Java(Practice)
  7. For-each loop in Java
  8. For Loop in Java | Important points
  9. Decision Making(if, if-else, switch, break, continue, jump)(Practice)
  10. Switch Statement in Java(Practice)
@sumanssaurabh
sumanssaurabh / Java conventions.md
Created March 31, 2019 22:47 — forked from Adria87/Java conventions.md
[Java conventions] #java

Coding Conventions

This file will cover important coding practices that are important to stress when coding this program. Listed below are some of the more important details that should be stressed. Each programmer has his/her own way to deliver code. The importance of having similar coding conventions throughout this program are listed below.

  • 80% of the time spent on a piece of software goes to maintenance.
  • Hardly any software is maintained for its whole life by the original author.
  • Code conventions improve the readability of the software, allowing engineers to understand new code more quickly and thoroughly.
  • If you ship your source code as a product, you need to make sure it is as well packaged and clean as any other product you create.
@sumanssaurabh
sumanssaurabh / 1.md
Created March 31, 2019 22:48 — forked from aziflaj/1.md
Java Tutorials

Java Programming 1: Get started with Java programming

Java is a general-purpose, OOP language designed with the idea of Write Once, Run Anywhere (WORA), meaning that the Java code would work virtually in every computer without the need of re-compilation like C or C++. In order to obtain this unique portability, the computer needs to have the JVM (Java Virtual Machine) installed. Nowadays, Java is the most used programming language in the world, used for almost anything, from embedded programming to large software development, web application development and supercomputers. Java has 3 main implementation named Java EE, Java SE and Java ME meaning respectively Java Enterprise Edition, Java Standard Edition and Java Micro Edition (used in the abbreviated form as J2EE, J2SE and J2ME). Java, firstly developed at Sun Microsystems which merged into Oracle Corporation, was designed with 5 main principles in mind:

  • Simple, object-oriented and familiar

Java makes programming simple using its build-in classes,

@sumanssaurabh
sumanssaurabh / .md
Created March 31, 2019 22:48 — forked from WaltXin/.md
Java Knowledge

Java basic knowledge

Primitive type and Autoboxing/Unboxing

Eg: int vs Integer
int is primitive type, while Integer is a class (eg: Integer.parseInt("1") is a call of Integer's class method)
All primitive type in Java has an equivalent wrapper class:

  • byte -> Byte
  • short -> Short
  • int -> Integer
  • long -> Long
@sumanssaurabh
sumanssaurabh / javacommon.md
Created March 31, 2019 22:49 — forked from rkcb/javacommon.md
Java common

Java common

Strings

Find a substring by a regular expression:

  String pattern = "(.*)(\\d\\d\\d\\d)(.*)";
  String line = "2018-11-22 00:00:00";
 Pattern re = Pattern.compile(pattern);
@sumanssaurabh
sumanssaurabh / introrx.md
Created March 31, 2019 22:50 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing