Skip to content

Instantly share code, notes, and snippets.

View evrentan's full-sized avatar
💻
Crafting Software

Evren Tan evrentan

💻
Crafting Software
View GitHub Profile
@evrentan
evrentan / courceZshrc
Created March 10, 2023 10:03
Activate Changes in .zshrc File
View courceZshrc
source ~/.zshrc
@evrentan
evrentan / .zshrc
Created March 10, 2023 10:02
Add Below Lines to .zshrc to Make .bash_aliases Work Every Time
View .zshrc
# alias definitions. add aliaes into ~/.bash_aliases file.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
@evrentan
evrentan / sourceBashAliases.sh
Created March 10, 2023 09:59
Activate .bash_aliases
View sourceBashAliases.sh
source ~/.bash_aliases
@evrentan
evrentan / .bash_aliases
Created March 10, 2023 09:58
My .bash_aliases Example File
View .bash_aliases
# alias definitions
# MyGitHub Short Cuts
alias my-github='cd /Volumes/MyGitHub'
alias community-workspace='cd /Volumes/MyGitHub/community-workspace'
alias java-examples='cd /Volumes/MyGitHub/java-examples'
alias qr-code-generator-backend='cd /Volumes/MyGitHub/qr-code-generator-workspace/qr-code-generator-backend'
alias qr-code-generator-frontend='cd /Volumes/MyGitHub/qr-code-generator-workspace/qr-code-generator-web-frontend'
alias spring-boot-project='cd /Volumes/MyGitHub/spring-boot-project-example'
@evrentan
evrentan / bashAliases.sh
Created March 10, 2023 09:41
Open .bash_aliases with Your Fav Text Editor
View bashAliases.sh
nano .bash_aliases
@evrentan
evrentan / goToHomeDirectory.sh
Created March 10, 2023 09:39
Shell Script to Take to Your Home Directory
@evrentan
evrentan / BridgeDesignPattern.java
Created February 19, 2023 14:31
Main Class for Bridge Design Pattern
View BridgeDesignPattern.java
import bridge.VehicleManager;
import impl.VehicleImpl;
import java.util.Scanner;
public class BridgeDesignPattern {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
@evrentan
evrentan / VehicleManager.java
Created February 19, 2023 14:28
Bridge Class for Bridge Design Pattern
View VehicleManager.java
package bridge;
import service.Vehicle;
public class VehicleManager {
public Vehicle vehicle;
public int getAge() {
return this.vehicle.getAge();
@evrentan
evrentan / VehicleImpl.java
Created February 19, 2023 14:26
Implementation Class for Bridge Design Pattern
View VehicleImpl.java
package impl;
import service.Vehicle;
import java.util.Calendar;
public class VehicleImpl implements Vehicle {
private int manufactureYear;
private String model;
@evrentan
evrentan / Vehicle.java
Created February 19, 2023 14:24
Interface Class for Bridge Design Pattern
View Vehicle.java
package service;
public interface Vehicle {
int getAge();
String getModel();
}