Skip to content

Instantly share code, notes, and snippets.

View josseyj's full-sized avatar

Jossey Jacob josseyj

View GitHub Profile
@startuml
actor clientD
node app
node car
node tshirt
car -> app
app -> clientD
client -> tshirt
@enduml
@josseyj
josseyj / gof_book_notes.md
Last active March 24, 2019 00:53
Notes: Design Patterns: Elements of Reusable Object-Oriented Software

Design Patterns

Creational Design Patters

Class Creational

  • Creation is done by sub classes

Abstract Factory Pattern

Object Creational

  • Creation is done by delegation

Factory Method

  • Abstracts creation of a family of related objects
@josseyj
josseyj / shell_cheat_sheet.md
Last active October 24, 2018 17:55
Shell Cheat Sheet

Loop

Loop by count
i=0 && while [[ $i < 5 ]]; do echo $i; i=$((i+1)); done
Loop by files
for i in *; do echo $i; done
@josseyj
josseyj / LXC.md
Last active January 5, 2019 08:13

Linux Containers

  • LXC - Linux Containers
  • LXD - LXC Deamon
  • LXC - LXD Client (different from the original LXC)

Ubuntu

vagrant init ubuntu/trusty64
vagrant ssh
@josseyj
josseyj / FibonacciRecursiveAndIteration.java
Created February 18, 2014 00:19
Fibonacci Series - Compare Recursive And Iteration Methods
import java.text.MessageFormat;
public class Fibonacci {
public static int fibonacci(int n) {
if (n < 0) {
throw new IllegalArgumentException("Currently not supported.");
}
//F(0) = 0
public class ClassTest {
static class A {
}
static class B extends A {
}