-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
258 additions
and
39 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
a = 1 | ||
b = 2a | ||
2 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
a = 2 | ||
a = 1 | ||
b = 3a | ||
b = 2a | ||
1 | ||
2 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!submit |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Welcome to Juliet, the Julia Interative Educational Tutor. | ||
Type `juliet()` to get started | ||
|
||
Welcome to Juliet, the Julia Interative Educational Tutor. | ||
Selct a lesson or course to get started, or type `!help` for information. | ||
|
||
Starting Basic syntax | ||
1 / 4: This lesson will teach you about basic Julia syntax | ||
...2 / 4: Set `a` to be 1 | ||
> Keep up the great work! | ||
3 / 4: Assign `b` to be twice `a` | ||
> Keep up the great work! | ||
4 / 4: Is this fun? | ||
Options: | ||
1 - no | ||
2 - yes | ||
> You're doing great! | ||
Finished Basic syntax |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Welcome to Juliet, the Julia Interative Educational Tutor. | ||
Type `juliet()` to get started | ||
|
||
Welcome to Juliet, the Julia Interative Educational Tutor. | ||
Selct a lesson or course to get started, or type `!help` for information. | ||
|
||
Starting Basic syntax | ||
1 / 4: This lesson will teach you about basic Julia syntax | ||
...2 / 4: Set `a` to be 1 | ||
> One more try | ||
> Keep up the great work! | ||
3 / 4: Assign `b` to be twice `a` | ||
> Close, but no cigar | ||
> Great job! | ||
4 / 4: Is this fun? | ||
Options: | ||
1 - no | ||
2 - yes | ||
> Hang in there | ||
> Keep up the great work! | ||
Finished Basic syntax |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Welcome to Juliet, the Julia Interative Educational Tutor. | ||
Type `juliet()` to get started | ||
|
||
Welcome to Juliet, the Julia Interative Educational Tutor. | ||
Selct a lesson or course to get started, or type `!help` for information. | ||
|
||
Starting Functions TEST | ||
1 / 1: Return the same number | ||
`!submit` to submit file and run tests | ||
> 1/1 tests passed | ||
Keep up the great work! | ||
Finished Functions TEST |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using Juliet | ||
|
||
text = """ | ||
name = "Basic syntax" | ||
description = "Some basic syntax stuff" | ||
authors = ["Matthew Lake"] | ||
keywords = ["basic", "syntax"] | ||
[[questions]] | ||
type = "InfoQuestion" | ||
text = "This lesson will teach you about basic Julia syntax" | ||
[[questions]] | ||
type = "SyntaxQuestion" | ||
text = "Set `a` to be 1" | ||
answer = "a = 1" | ||
hints = [] | ||
[[questions]] | ||
type = "SyntaxQuestion" | ||
text = "Assign `b` to be twice `a`" | ||
answer = "b = 2a" | ||
hints = [] | ||
[[questions]] | ||
type = "MultiQuestion" | ||
text = "Is this fun?" | ||
options = ["no", "yes"] | ||
answer = 2 | ||
hints = [] | ||
""" | ||
|
||
lesson = Juliet.Convert.to_lesson(TOML.parse(text)) | ||
|
||
c = Juliet.Types.Course("Basic Syntax Lesson", "", v"1", [], [], [lesson]) | ||
Juliet.register(c) | ||
|
||
juliet() |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using Juliet | ||
using TOML | ||
|
||
text = """ | ||
name = "Functions TEST" | ||
description = "All functions all the time" | ||
authors = ["Matthew Lake"] | ||
keywords = ["basic", "functions"] | ||
[[questions]] | ||
type = "FunctionQuestion" | ||
text = "Return the same number" | ||
tests = [["123", "123"]] | ||
template = "# write code here" | ||
hints = ["Just return the number you read in"] | ||
""" | ||
|
||
lesson = Juliet.Convert.to_lesson(TOML.parse(text)) | ||
|
||
# Write a passing file | ||
answer = """ | ||
print(readline()) | ||
""" | ||
dir = joinpath(homedir(), "Juliet", "FunctionQuestion") | ||
file = joinpath(dir, Juliet.filename(lesson.questions[1])) | ||
open(file, "w") do f | ||
write(f, answer) | ||
end | ||
|
||
c = Juliet.Types.Course("Basic Function Lesson", "", v"1", [], [], [lesson]) | ||
Juliet.register(c) | ||
|
||
juliet() | ||
|
||
# rm(file) |
Oops, something went wrong.