This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source : | |
https://7labs.heypub.com/tips-tricks/el-capitan-direct-download.html | |
1. cd Desktop | |
2. mkdir osxapps_local | |
3. cd osxapps_local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Naval Ravikant on Happiness Hacks and The 5 Chimps Theory | |
https://overcast.fm/+BmGUMrSCc/12:04 | |
MARCH 29–31, 2016: CONFERENCE | |
SAN JOSE, CA | |
http://conferences.oreilly.com/strata/hadoop-big-data-ca/public/schedule/proceedings | |
https://sarabander.github.io/sicp/html/index.xhtml#SEC_Contents | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defaults write com.apple.screencapture location /Users/<user>/Desktop/ss/;killall SystemUIServer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Exercise
https://www.scala-exercises.org/std_lib/ http://exercism.io/languages/scala/exercises
Resoucres
scala school by twitter https://twitter.github.io/scala_school/type-basics.html