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
export PATH="$PATH:/usr/local/confluent-4.0.0/bin" | |
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) | |
export NVM_DIR="/Users/art/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
## Colorize the ls output ## | |
alias ls='ls -GFph' | |
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
# Adding Key | |
ssh-add private_key | |
# Logging In | |
ssh jaydynbl@jaydynblairphotography.com -p18765 |
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
public class AppExecutors { | |
// For Singleton instantiation | |
private static final Object LOCK = new Object(); | |
private static AppExecutors sInstance; | |
private final Executor diskIO; | |
private final Executor mainThread; | |
private final Executor networkIO; | |
private AppExecutors(Executor diskIO, Executor networkIO, Executor mainThread) { |
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
package com.art.datastructures; | |
import java.util.NoSuchElementException; | |
public class DoublyLinkedList<T> { | |
Node head; | |
DoublyLinkedList() { | |
this.head = null; |
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
package com.art.designpatterns.strategy; | |
import com.google.common.collect.Lists; | |
import java.util.List; | |
public class StrategyDemo { | |
public static void main(String[] args) { | |
PromotionStrategy halfOffPromo = new HalfOffPromotionStrategy(); | |
PromotionStrategy clearancePromo = new ClearancePromotionStrategy(); |
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
package com.art.fundamentals; | |
public class CompositionDemo { | |
public static void main(String[] args) { | |
Question firstQuestion = new Question("Who won 2018 World Cup ?", "France", "Croatia"); | |
Question secondQuestion = new Question("Who hosted 2018 World Cup ?", "Russia", "USA"); | |
System.out.println(firstQuestion); | |
System.out.println(secondQuestion); |
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
package com.art.fundamentals; | |
public class AggregationDemo { | |
public static void main(String[] args) { | |
Engine dohc_v6 = new Engine("3.0L TFSI Supercharged DOHC V-6", "2014", "Audi"); | |
Car myCar = new Car(dohc_v6, "Audi A6"); | |
// Car Info | |
System.out.println(myCar.toString()); | |
myCar = null; |
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
package com.art.head_first.turkeyadapter; | |
public interface Duck { | |
public void quack(); | |
public void fly(); | |
} |
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
package com.art.head_first.chocolateboiler; | |
class ChocolateBoiler { | |
private static ChocolateBoiler uniqueInstance; | |
private boolean empty; | |
private boolean boiled; | |
private ChocolateBoiler() { |
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
package com.art.head_first.homeautomation; | |
public interface Command { | |
void execute(); | |
void undo(); | |
} |