Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active February 3, 2026 20:20
Show Gist options
  • Select an option

  • Save dacr/80159e26bf38082bd3da4ccb65b7accd to your computer and use it in GitHub Desktop.

Select an option

Save dacr/80159e26bf38082bd3da4ccb65b7accd to your computer and use it in GitHub Desktop.
hello world julia script / published by https://github.com/dacr/code-examples-manager #446b83f6-4f90-4150-9dc1-e4b40bdda3db/1a4b05abf90999747727600203259ff72f78603c
#!/usr/bin/env julia
## summary : hello world julia script
## keywords : helloworld, julia, script
## publish : gist
## authors : David Crosson
## license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
## id : 446b83f6-4f90-4150-9dc1-e4b40bdda3db
## created-on : 2020-10-17T19:03:34Z
## managed-by : https://github.com/dacr/code-examples-manager
## execution : julia script (https://julialang.org/) - run as follow 'julia scriptname.jl' or directly thanks to the shebang
f(x,y) = 2x+y
answer = f(20,2)
println("hello world, the answer is $answer")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment