-
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.
* Add support for teacher challenge page reconnects * Support for log page feedback * Add Float support * Upgrade jars
- Loading branch information
Showing
100 changed files
with
2,471 additions
and
1,032 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: "3.8" | ||
services: | ||
readingbat0: | ||
image: "pambrose/readingbat:1.0.14" | ||
restart: always | ||
env_file: docker_env_vars | ||
ports: | ||
- "8080:8080" | ||
readingbat1: | ||
image: "pambrose/readingbat:1.0.14" | ||
restart: always | ||
env_file: docker_env_vars | ||
ports: | ||
- "8081:8080" |
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,44 @@ | ||
# Deployment Configurations | ||
|
||
## Common | ||
|
||
``` | ||
AGENT_ENABLED=true | ||
GITHUB_OAUTH= | ||
SENDGRID_API_KEY= | ||
XFORWARDED_ENABLED=true | ||
FILTER_LOG=true | ||
PAPERTRAIL_PORT= | ||
IPGEOLOCATION_KEY= | ||
``` | ||
|
||
## localhost | ||
``` | ||
REDIS_URL=redis://user:[email protected]:6379 | ||
POSTGRES_URL=jdbc:pgsql://host.docker.internal:5432/readingbat | ||
POSTGRES_USERNAME=postgres | ||
POSTGRES_PASSWORD=docker | ||
``` | ||
|
||
## Digital Ocean | ||
|
||
``` | ||
REDIS_URL=rediss://default:[email protected]:port | ||
POSTGRES_URL=jdbc:pgsql://readingbat-postgres.ondigitalocean.com:port/readingbat?ssl.mode=Require | ||
POSTGRES_USERNAME=readingbat | ||
POSTGRES_PASSWORD= | ||
``` | ||
|
||
## Google Cloud Run | ||
|
||
``` | ||
REDIS_URL=redis://ip_address:6379 | ||
DBMS_DRIVER_CLASSNAME=org.postgresql.Driver | ||
POSTGRES_URL=jdbc:postgresql:///readingbat | ||
POSTGRES_USERNAME=postgres | ||
POSTGRES_PASSWORD= | ||
CLOUD_SQL_CONNECTION_NAME=readingbat-1:us-west1:readingbat-postgres | ||
``` |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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,9 @@ | ||
jdk: | ||
- openjdk11 | ||
#before_install: | ||
# - ./custom_setup.sh | ||
#install: | ||
# - echo "Running a custom install command" | ||
# - ./gradlew clean build -xtest publish publishToMavenLocal | ||
#env: | ||
# MYVAR: "custom environment variable" |
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,15 @@ | ||
def flip(x): | ||
for i in range(len(x)): | ||
x[i] = not x[i] | ||
return x | ||
|
||
|
||
def main(): | ||
print(flip([True, True])) | ||
print(flip([False])) | ||
print(flip([True])) | ||
print(flip([])) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
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,15 @@ | ||
def flip(x): | ||
for i in range(len(x)): | ||
x[i] = not x[i] | ||
return x | ||
|
||
|
||
def main(): | ||
print(flip([True, True])) | ||
print(flip([False])) | ||
print(flip([True])) | ||
print(flip([])) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
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,15 @@ | ||
def inc1(x): | ||
for i in range(len(x)): | ||
x[i] = x[i] + 1.0 | ||
return x | ||
|
||
|
||
def main(): | ||
print(inc1([3.4, 4.4])) | ||
print(inc1([4.4])) | ||
print(inc1([0.0])) | ||
print(inc1([])) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
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,13 @@ | ||
def inc1(x): | ||
return x + 1.0 | ||
|
||
|
||
def main(): | ||
print(inc1(3.4)) | ||
print(inc1(4.4)) | ||
print(inc1(5.4)) | ||
print(inc1(2.3)) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
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,15 @@ | ||
def inc1(x): | ||
for i in range(len(x)): | ||
x[i] = x[i] + 1 | ||
return x | ||
|
||
|
||
def main(): | ||
print(inc1([3, 4])) | ||
print(inc1([4])) | ||
print(inc1([0])) | ||
print(inc1([])) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
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,15 @@ | ||
def flip(x): | ||
for i in range(len(x)): | ||
x[i] = x[i].upper() | ||
return x | ||
|
||
|
||
def main(): | ||
print(flip(["this", "is"])) | ||
print(flip(["a"])) | ||
print(flip(["test"])) | ||
print(flip([])) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
Oops, something went wrong.