From 5b229b11cb63e77925c3d6af3ad8028e1ae7efc2 Mon Sep 17 00:00:00 2001 From: Jesper Louis Andersen Date: Tue, 25 Oct 2022 18:13:39 +0200 Subject: Provide a fib implementation for jlouis Most of the entry is pure build-scaffolding. The meat is in a single file, which is then referenced in people.json. --- people.json | 74 +++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 42 insertions(+), 32 deletions(-) (limited to 'people.json') diff --git a/people.json b/people.json index 6499425..5cd8ac2 100644 --- a/people.json +++ b/people.json @@ -56,6 +56,17 @@ } ] }, + { + "github": "jlouis", + "name": "Jesper Louis Andersen", + "title": "BSc, Copenhagen University", + "entries": [ + { + "name": "ocaml", + "link": "./entries/jlouis/lib/fib.ml" + } + ] + }, { "github": "funemy", "name": "Yanze Li", @@ -88,28 +99,27 @@ "name": "vintage-htdp", "link": "./entries/jyoo980/vintage-htdp/fib.rkt" } - ] }, - { - "github": "rctcwyvrn", - "name": "Lily Lin", - "title": "BSc, UBC", - "entries": [ - { - "name": "fractran", - "link": "./entries/lilylin/fractran/fractran.py" - }, - { - "name": "cursed-x86", - "link": "./entries/lilylin/cursed-x86/" - }, - { - "name": "mov", - "link": "./entries/lilylin/mov/mov.s" - } - ] - }, + { + "github": "rctcwyvrn", + "name": "Lily Lin", + "title": "BSc, UBC", + "entries": [ + { + "name": "fractran", + "link": "./entries/lilylin/fractran/fractran.py" + }, + { + "name": "cursed-x86", + "link": "./entries/lilylin/cursed-x86/" + }, + { + "name": "mov", + "link": "./entries/lilylin/mov/mov.s" + } + ] + }, { "github": "lizard-business", "name": "rhiannon morris", @@ -243,17 +253,17 @@ } ] }, - { - "github": "StuartLiv", - "name": "Stuart Livingstone", - "title": "BSc Student, UBC", - "entries": [ - { - "name": "ThetaFibN", - "link": "./entries/StuartLiv/ThetaFibN.java" - } - ] - }, + { + "github": "StuartLiv", + "name": "Stuart Livingstone", + "title": "BSc Student, UBC", + "entries": [ + { + "name": "ThetaFibN", + "link": "./entries/StuartLiv/ThetaFibN.java" + } + ] + }, { "github": "Tarcisio-Teixeira", "name": "TarcĂ­sio Teixeira", @@ -379,4 +389,4 @@ } ] } -] +] \ No newline at end of file -- cgit v1.2.3-70-g09d2 From 717ac7853efc82e2bb8402ed8408749279bccee9 Mon Sep 17 00:00:00 2001 From: James Yoo Date: Tue, 25 Oct 2022 11:06:36 -0700 Subject: Adding AspectJ version of Fibonacci --- entries/jyoo980/aspectj/Fibonacci.aj | 21 +++++++++++++++++++++ people.json | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 entries/jyoo980/aspectj/Fibonacci.aj (limited to 'people.json') diff --git a/entries/jyoo980/aspectj/Fibonacci.aj b/entries/jyoo980/aspectj/Fibonacci.aj new file mode 100644 index 0000000..39dfd8a --- /dev/null +++ b/entries/jyoo980/aspectj/Fibonacci.aj @@ -0,0 +1,21 @@ +public aspect Fibonnacci { + + pointcut mainInvocation(): call(* Main.*(*)); + + void before(): mainInvocation() { + // Nice + int n = 69; + System.out.println("The 69th fibonacci number is: " + fibonacci(n)); + } + + public int fibonacci(int n) { + int prev = 0; + int curr = 1; + for (int i = 0; i < n; i++) { + int tmp = prev; + prev = curr; + curr = prev + tmp; + } + return prev; + } +} diff --git a/people.json b/people.json index ce294cf..fe0e1a3 100644 --- a/people.json +++ b/people.json @@ -75,6 +75,10 @@ { "name": "vintage-htdp", "link": "./entries/jyoo980/vintage-htdp/fib.rkt" + }, + { + "name": "aspectj", + "link": "./entries/jyoo980/aspectj/Fibonacci.aj" } ] -- cgit v1.2.3-70-g09d2 From 79f35588f9026e09a7adcef7388f0c613b6ac240 Mon Sep 17 00:00:00 2001 From: Tarcisio-Teixeira Date: Tue, 25 Oct 2022 15:08:03 -0700 Subject: Update people.json --- people.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'people.json') diff --git a/people.json b/people.json index f7edd70..e9faed7 100644 --- a/people.json +++ b/people.json @@ -280,7 +280,11 @@ { "name": "logn?", "link": "./entries/Tarcisio-Teixeira/fib.py" - } + }, + { + "name": "differential", + "link": "./entries/Tarcisio-Teixeira/differential.py" + }, ] }, { @@ -397,4 +401,4 @@ } ] } -] \ No newline at end of file +] -- cgit v1.2.3-70-g09d2 From 4687273b2f22bba837dac661a38bf50185e7d8d0 Mon Sep 17 00:00:00 2001 From: Tarcisio-Teixeira Date: Tue, 25 Oct 2022 15:10:50 -0700 Subject: Update people.json --- people.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'people.json') diff --git a/people.json b/people.json index e9faed7..a9be376 100644 --- a/people.json +++ b/people.json @@ -284,7 +284,7 @@ { "name": "differential", "link": "./entries/Tarcisio-Teixeira/differential.py" - }, + } ] }, { -- cgit v1.2.3-70-g09d2