Skip to content

Commit 01cf586

Browse files
committed
initial project commit
0 parents  commit 01cf586

File tree

7 files changed

+124
-0
lines changed

7 files changed

+124
-0
lines changed

.github/workflows/ci.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on: [push, pull_request]
2+
name: CI
3+
jobs:
4+
build:
5+
name: "Build on Racket '${{ matrix.racket-version }}' (${{ matrix.racket-variant }})"
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
racket-version: ["stable", "current"]
10+
racket-variant: ["BC", "CS"]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: Bogdanp/[email protected]
14+
with:
15+
architecture: x64
16+
distribution: full
17+
variant: ${{ matrix.racket-variant }}
18+
version: ${{ matrix.racket-version }}
19+
- name: Installing algorithms-and-data-structures and its dependencies
20+
run: raco pkg install --no-docs --auto --name algorithms-and-data-structures
21+
- name: Compiling algorithms-and-data-structures and building its docs
22+
run: raco setup --check-pkg-deps --unused-pkg-deps algorithms-and-data-structures
23+
- name: Testing algorithms-and-data-structures
24+
run: raco test -x -p algorithms-and-data-structures

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*~
2+
\#*
3+
.\#*
4+
.DS_Store
5+
compiled/
6+
/doc/

LICENSE

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
algorithms-and-data-structures
2+
3+
MIT License
4+
5+
Copyright (c) 2022 piubu
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# algorithms-and-data-structures
2+
3+
README text here.

info.rkt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#lang info
2+
(define collection "algorithms-and-data-structures")
3+
(define deps '("base"))
4+
(define build-deps '("scribble-lib" "racket-doc" "rackunit-lib"))
5+
(define scribblings '(("scribblings/algorithms-and-data-structures.scrbl" ())))
6+
(define pkg-desc "Description Here")
7+
(define version "0.0")
8+
(define pkg-authors '(piubu))

main.rkt

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#lang racket/base
2+
3+
(module+ test
4+
(require rackunit))
5+
6+
;; Notice
7+
;; To install (from within the package directory):
8+
;; $ raco pkg install
9+
;; To install (once uploaded to pkgs.racket-lang.org):
10+
;; $ raco pkg install <<name>>
11+
;; To uninstall:
12+
;; $ raco pkg remove <<name>>
13+
;; To view documentation:
14+
;; $ raco docs <<name>>
15+
;;
16+
;; For your convenience, we have included LICENSE-MIT and LICENSE-APACHE files.
17+
;; If you would prefer to use a different license, replace those files with the
18+
;; desired license.
19+
;;
20+
;; Some users like to add a `private/` directory, place auxiliary files there,
21+
;; and require them in `main.rkt`.
22+
;;
23+
;; See the current version of the racket style guide here:
24+
;; http://docs.racket-lang.org/style/index.html
25+
26+
;; Code here
27+
28+
29+
30+
(module+ test
31+
;; Any code in this `test` submodule runs when this file is run using DrRacket
32+
;; or with `raco test`. The code here does not run when this file is
33+
;; required by another module.
34+
35+
(check-equal? (+ 2 2) 4))
36+
37+
(module+ main
38+
;; (Optional) main submodule. Put code here if you need it to be executed when
39+
;; this file is run using DrRacket or the `racket` executable. The code here
40+
;; does not run when this file is required by another module. Documentation:
41+
;; http://docs.racket-lang.org/guide/Module_Syntax.html#%28part._main-and-test%29
42+
43+
(require racket/cmdline)
44+
(define who (box "world"))
45+
(command-line
46+
#:program "my-program"
47+
#:once-each
48+
[("-n" "--name") name "Who to say hello to" (set-box! who name)]
49+
#:args ()
50+
(printf "hello ~a~n" (unbox who))))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#lang scribble/manual
2+
@require[@for-label[algorithms-and-data-structures
3+
racket/base]]
4+
5+
@title{algorithms-and-data-structures}
6+
@author{piubu}
7+
8+
@defmodule[algorithms-and-data-structures]
9+
10+
Package Description Here

0 commit comments

Comments
 (0)