Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am svlada on github.
  • I am svlada (https://keybase.io/svlada) on keybase.
  • I have a public key whose fingerprint is 3151 28C8 877C 4101 8F47 F836 2264 D72B D546 198F

To claim this, I am signing this object:

@svlada
svlada / System Design.md
Created April 19, 2016 07:22 — forked from vasanthk/System Design.md
System Design Cheatsheet

#System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

##Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@svlada
svlada / Candidate
Created October 31, 2013 10:35
Candidate
# Weeks 1 - 2
## Reading
### Mandatory
- Read Spring MVC in Action
- Read http://en.wikibooks.org/wiki/Java_Persistence
### Optional
- Read Pro JPA 2 - Mastering the Java Persistence
@svlada
svlada / gist:5280584
Last active December 15, 2015 15:19
Answer to question from http://victorhurdugaci.com/my-interview-with-microsoft/ “You are given two arrays: before: {3, 3, 5, 8, 1} and after: {5, 3, 2, 4}. Determine what numbers were removed/added from/to the ‘before’ array in order to obtain ‘after’.”
import java.util.HashMap;
import java.util.Map;
public class BeforeAfterArray {
public static void main(String[] args) {
int [] before = {3, 3, 5, 8, 1};
int [] after = {3, 3, 3, 3};
HashMap<Integer, Integer> map = new HashMap<Integer, Integer>();
<html><head></head><body>
<style type="text/css">
.clearfix:after { content: "."; visibility: hidden; display: block; height: 0; clear: both; }
.wrapper { background-color: #ccc; padding-left: 5px; }
.left-column { float: left; }
.content { float: left; }
.img {display: none;}
.active {display:block;}
</style>