Skip to content

Instantly share code, notes, and snippets.

Customer Id, Item Id, Transaction Date, Transaction Amount
Cust_1, Item_1, 2016/01/01, 100
Cust_4, Item_1, 2016/01/01, 50
Cust_2, Item_1, 2016/01/15, 100
Cust_2, Item_1, 2016/01/31, 200
Cust_3, Item_1, 2016/01/10, 150
Cust_3, Item_1, 2016/02/10, 150
Cust_1, Item_1, 2016/02/15, 500
Cust_4, Item_1, 2016/02/15, 500
MacBook Pro (Retina, 15-inch, Mid 2015)
https://support.apple.com/en-in/HT201700
charger type
85W MagSafe power adapter with MagSafe 2 style connector
programming interviews
http://bigocheatsheet.com/#data-structures
https://gist.github.com/TSiege/cbb0507082bb18ff7e4b
https://www.quora.com/How-should-I-prepare-for-a-Dropbox-interview
Interview Philosphy
http://www.elidedbranches.com/2016/05/brief-thoughts-on-take-home-interviews.html
https://slack.engineering/a-walkthrough-guide-to-finding-an-engineering-job-at-slack-dc07dd7b0144#.9mx1w21s9
defaults write com.apple.screencapture location /Users/<user>/Desktop/ss/;killall SystemUIServer
@yashk
yashk / link dump
Last active April 11, 2017 19:22
@yashk
yashk / kafka-move-leadership.sh
Last active April 9, 2016 03:25 — forked from miguno/kafka-move-leadership.sh
A simple Ops helper script for Apache Kafka to generate a partition reassignment JSON snippet for moving partition leadership away from a given Kafka broker. Use cases include 1) safely restarting a broker while minimizing risk of data loss, 2) replacing a broker, 3) preparing a broker for maintenance.
#!/usr/bin/env bash
#
# File: kafka-move-leadership.sh
#
# Description
# ===========
#
# Generates a Kafka partition reassignment JSON snippet to STDOUT to move the leadership
# of any replicas away from the provided "source" broker to different, randomly selected
# "target" brokers. Run this script with `-h` to show detailed usage instructions.
source :
https://7labs.heypub.com/tips-tricks/el-capitan-direct-download.html
1. cd Desktop
2. mkdir osxapps_local
3. cd osxapps_local
@yashk
yashk / FindJarForClass.java
Created March 25, 2016 02:27
FindJarForClass
import java.net.URL;
public class FindJarForClass {
public static void main(String[] args) throws ClassNotFoundException {
System.out.println(findPathJar(Class.forName(args[0])));
}
public static String findPathJar(Class<?> context) throws IllegalStateException {