From dc7685c4378c659b1f4361670dc771d8d2c0c7fa Mon Sep 17 00:00:00 2001 From: David Leal Date: Sat, 8 Oct 2022 22:46:42 -0500 Subject: [PATCH] feat: add a Gitpod Dockerfile (#147) Co-authored-by: Soc Virnyl S. Estela --- .gitpod.dockerfile | 4 ++++ .gitpod.yml | 16 ++++++++++++++++ Project.toml | 2 +- docs/src/index.md | 2 +- src/TheAlgorithms.jl | 2 +- src/math/fibonacci.jl | 2 +- 6 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 .gitpod.dockerfile create mode 100644 .gitpod.yml diff --git a/.gitpod.dockerfile b/.gitpod.dockerfile new file mode 100644 index 00000000..201b9fc2 --- /dev/null +++ b/.gitpod.dockerfile @@ -0,0 +1,4 @@ +FROM gitpod/workspace-full-vnc + +RUN sudo apt-get update / + && sudo apt-get install julia diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 00000000..62a90832 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,16 @@ +image: + file: .gitpod.dockerfile + +github: + prebuilds: + addBadge: true + addComment: false + addCheck: false + master: true + branches: true + pullRequestsFromForks: true + +vscode: + extensions: + - julialang.language-julia + - singularitti.vscode-julia-formatter diff --git a/Project.toml b/Project.toml index 127c1672..d4533a07 100644 --- a/Project.toml +++ b/Project.toml @@ -10,7 +10,7 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" [compat] DataStructures = "0.18" -julia = "1.6" +julia = "1.8" [extras] Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" diff --git a/docs/src/index.md b/docs/src/index.md index 48657bd0..8f7d7d3c 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -11,4 +11,4 @@ Documentation for [TheAlgorithms](https://github.com/TheAlgorithms/Julia). ```@autodocs Modules = [TheAlgorithms] -``` \ No newline at end of file +``` diff --git a/src/TheAlgorithms.jl b/src/TheAlgorithms.jl index 7b0570e0..c625f55b 100644 --- a/src/TheAlgorithms.jl +++ b/src/TheAlgorithms.jl @@ -239,7 +239,7 @@ include("math/combination.jl") include("math/euler_method.jl") include("math/eulers_totient.jl") include("math/factorial.jl") -include("math/fibonacci.jl") +include("math/fibonacci.jl") include("math/krishnamurthy_number.jl") include("math/line_length.jl") include("math/krishnamurthy_number.jl") diff --git a/src/math/fibonacci.jl b/src/math/fibonacci.jl index b1575f06..d3f59f7b 100644 --- a/src/math/fibonacci.jl +++ b/src/math/fibonacci.jl @@ -109,4 +109,4 @@ function fib_iterative(n::Int) end return result end -end \ No newline at end of file +end