This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Both rocky versions work | |
| #FROM rockylinux:8 | |
| FROM rockylinux:9 | |
| # This file builds a subset of boost from source and then builds and runs a | |
| # small example program which links to boost | |
| # | |
| # Reference: https://www.boost.org/doc/user-guide/getting-started.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM rockylinux:9 | |
| # This file builds boost "from source" (actually from a release tarball, not a | |
| # direct git clone) and then builds and runs a small example program which links | |
| # to boost | |
| # | |
| # Reference: https://www.boost.org/doc/user-guide/getting-started.html | |
| #============================================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM rockylinux:8 | |
| #FROM rockylinux:9 | |
| WORKDIR /workdir | |
| RUN yum update -y && \ | |
| yum install -y \ | |
| autoconf \ | |
| automake \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # hello.r | |
| # Windows one-time setup (requires choco): | |
| # | |
| # choco install R | |
| # | |
| # Run this from a shell: | |
| # | |
| # "/c/Program Files/R/R-4.1.2/bin/Rscript.exe" hello.r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module mymodule | |
| integer, parameter :: n = 6 | |
| integer, parameter :: myarray(n) = [1, 1, 2, 3, 5, 8] | |
| contains | |
| integer function myfunc(input) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| clear | |
| clc | |
| xdel(winsid()) | |
| asc = 'send help' | |
| //============================================================================== | |
| bin = '' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| subroutine eniuq(t) | |
| character(len = :), allocatable :: s | |
| character(len = *) :: t | |
| integer :: i | |
| s = '' | |
| do i = 1, len(t) | |
| if (t(i:i) == char(10)) then | |
| s = s//char(34)//'//char(10)// &'//t(i:i)//' '//char(34) | |
| else | |
| s = s//t(i:i) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| program p | |
| character(len = *), parameter :: c = '' & | |
| //' //''''\n' & | |
| //'\n' & | |
| //' character(len = :), allocatable :: d\n' & | |
| //'\n' & | |
| //' integer :: i\n' & | |
| //'\n' & | |
| //' print ''(a)'', "program p"\n' & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| if len(sys.argv) != 2: | |
| print("Usage:") | |
| print("python3 triplePalindrome.py 30041777") | |
| sys.exit(-1) | |
| nStr = sys.argv[1] | |
| n = int(nStr) |