From 1851ed6367d0e222096cc7c2d02a1e23a64e9f03 Mon Sep 17 00:00:00 2001 From: Carlos R Date: Wed, 11 Nov 2020 13:03:16 -0500 Subject: [PATCH 1/8] adding feature 3 --- feature3.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 feature3.js diff --git a/feature3.js b/feature3.js new file mode 100644 index 0000000..79a6f5f --- /dev/null +++ b/feature3.js @@ -0,0 +1,2 @@ +// this is another feature branch +const feat = 'feature3' \ No newline at end of file From 9d995c3f03da71cf6eafc86451eb57dbcdc4d6a1 Mon Sep 17 00:00:00 2001 From: Carlos R Date: Wed, 11 Nov 2020 13:06:01 -0500 Subject: [PATCH 2/8] added line --- feature3.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/feature3.js b/feature3.js index 79a6f5f..a13001e 100644 --- a/feature3.js +++ b/feature3.js @@ -1,2 +1,4 @@ // this is another feature branch -const feat = 'feature3' \ No newline at end of file +const feat = 'feature3' + +const additionalToFreature = '' \ No newline at end of file From b34af350447b36c9b2f86c8bfbcd1e871c341d83 Mon Sep 17 00:00:00 2001 From: Carlos R Date: Thu, 19 Aug 2021 16:36:01 -0500 Subject: [PATCH 3/8] WIP --- Javascript/javscript desgin patters/singleton-pattern.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Javascript/javscript desgin patters/singleton-pattern.js diff --git a/Javascript/javscript desgin patters/singleton-pattern.js b/Javascript/javscript desgin patters/singleton-pattern.js new file mode 100644 index 0000000..e7ede09 --- /dev/null +++ b/Javascript/javscript desgin patters/singleton-pattern.js @@ -0,0 +1,9 @@ +// example from Java + +export const createSingleton = (createInstance) => { + let instance; + + return { + getInstance: () => (instance || createInstance()) + }; +}; \ No newline at end of file From 83b8f79e85b66c8597b9380bd54a9dee749f4d2b Mon Sep 17 00:00:00 2001 From: Carlos R Date: Wed, 30 Mar 2022 15:12:12 -0500 Subject: [PATCH 4/8] Update feature1.js --- feature1.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/feature1.js b/feature1.js index 2c5e7b8..2c39bae 100644 --- a/feature1.js +++ b/feature1.js @@ -1,2 +1,4 @@ // this is a new feature branch and file. -const feature = 'newFeature1' \ No newline at end of file +const feature = 'newFeatureUpdated' + +const updateFeature = '-Hi'; From f69eb904169e4cf9247725eaf664b86a9d371ee8 Mon Sep 17 00:00:00 2001 From: Carlos R Date: Wed, 11 Nov 2020 13:03:16 -0500 Subject: [PATCH 5/8] adding feature 3 --- feature3.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 feature3.js diff --git a/feature3.js b/feature3.js new file mode 100644 index 0000000..79a6f5f --- /dev/null +++ b/feature3.js @@ -0,0 +1,2 @@ +// this is another feature branch +const feat = 'feature3' \ No newline at end of file From 565c242a55368ee428fb84733b2a9c964dc7b79d Mon Sep 17 00:00:00 2001 From: Carlos R Date: Wed, 11 Nov 2020 13:06:01 -0500 Subject: [PATCH 6/8] added line --- feature3.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/feature3.js b/feature3.js index 79a6f5f..a13001e 100644 --- a/feature3.js +++ b/feature3.js @@ -1,2 +1,4 @@ // this is another feature branch -const feat = 'feature3' \ No newline at end of file +const feat = 'feature3' + +const additionalToFreature = '' \ No newline at end of file From 077e345dfa9ef4ddf9343a36fb2b3c4fc8bc1bec Mon Sep 17 00:00:00 2001 From: Carlos R Date: Thu, 19 Aug 2021 16:36:01 -0500 Subject: [PATCH 7/8] WIP --- Javascript/javscript desgin patters/singleton-pattern.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Javascript/javscript desgin patters/singleton-pattern.js diff --git a/Javascript/javscript desgin patters/singleton-pattern.js b/Javascript/javscript desgin patters/singleton-pattern.js new file mode 100644 index 0000000..e7ede09 --- /dev/null +++ b/Javascript/javscript desgin patters/singleton-pattern.js @@ -0,0 +1,9 @@ +// example from Java + +export const createSingleton = (createInstance) => { + let instance; + + return { + getInstance: () => (instance || createInstance()) + }; +}; \ No newline at end of file From 9fc8390bf0174d7653589e47a878ebe57a422082 Mon Sep 17 00:00:00 2001 From: Carlos R Date: Wed, 30 Mar 2022 15:12:12 -0500 Subject: [PATCH 8/8] Update feature1.js --- feature1.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/feature1.js b/feature1.js index ac08b77..2de2111 100644 --- a/feature1.js +++ b/feature1.js @@ -1,4 +1,6 @@ // this is a new feature branch and file. const feature = 'newFeature1' -const updatingFeatureFileOnMain = 'main' \ No newline at end of file +const updatingFeatureFileOnMain = 'main' + +const updateFeature = '-Hi';