Clean up repo and update deps

This commit is contained in:
Nat 2024-03-10 11:52:04 -07:00
parent 1aa8901fbd
commit 96939b7aee
Signed by: nat
GPG Key ID: B53AB05285D710D6
12836 changed files with 1460871 additions and 288 deletions

View File

@ -1,30 +0,0 @@
# Background
As an AI Development Intern at the CSF, you will be tasked with
developing pipelines.
# Assessment
Please answer the following questions in a jupyter notebook. You should
only spend about two hours on these questions. If you want to spend more
you can. If you\'ve run out of time, please describe thoroughly what
remains to be done and how you would accomplish it.
## Jupyter Notebook to Processing Pipeline
Given a jupyter notebook that has a functioning implementation of a
machine learning model that identifies unique individuals out of a crowd
through gait analysis, how would you translate that notebook to a piece
of software that can be used to apply the model to any arbitrary images
or videos provided.
## Demo
Write a toy implementation of whatever machine learning concept you
would like in order to demonstrate your skills. This doesn\'t need to be
in the notebook if you want to use something other than python.
# Submission
Fork this repository and once you\'ve completed the above questions,
create a pull request to merge your fork with the original repository.

View File

@ -1,47 +0,0 @@
# Background
As a designer intern at the CSF, you will be using your skills to
translate technical data into pleasing and intuitive designs.
# Assessment
You are tasked to create three web pages corresponding to an individual
animal with the following data:
``` javascript
{
"owner":"John Johnson",
"breed":"Merino",
"birthdate":"2021-05-17",
"sex":"ewe"
"vaccinations":[
{
"name":"8-way",
"date_administered":"2021-09-22"
},
{
"name":"Chlamydia psittaci ewe vaccine",
"date_administered":"2021-08-13"
}
]
}
```
You\'ll create desing mockups of the following three pages:
- Detail Page, which should show all the information listed above.
- Edit Information Page, which should allow a user to edit the owner,
the breed, birthdate, and the sex of the sheep.
- Add Vaccination Page, which should allow a user to add a new
vaccination.
These mockups can be designed with whatever tool you\'d like: paper,
Adobe Illustrator, etc.
Please include a document describing these mockups among the files you
deliver.
# Submitting
Respond to the email that linked this assessment with a zipped package
containing the mockups and the explanation document.

View File

@ -1,19 +0,0 @@
# Background
As a QA intern at CSF, you will need to test web applications, file
outputs and more for quality and correctness.
# Assessment
Please answer the following questions:
## Something is not displaying properly in the browser and you want to learn more about it. How do you go about doing that? (Looking for what tools and specific steps you would take to investigate the error)
## Have you ever broken a piece of software? How did you break it? How did you fix it?
## Describe your experiene with code review.
# Submission
Send your answers in a word document to the email which you received
this assessment.

View File

@ -1,7 +1,26 @@
# Cat Bookmarker
My submission for the software developer assessment consumes JSON
representations of cat images accessible via the [Cataas](https://cataas.com)
API, the links to which can be permanently stored in a bookmark database.
This project was created in under a day in 2022 as a part of an assessment. It's a cat bookmarking web app! It consumes JSON representations of cat images accessible via the [Cataas](https://cataas.com) API, the links to which can be permanently stored in a bookmark database.
## Running the server
To run the server, you'll need:
* Elixir, which depends on Erlang. Detailed instructions on how to install Elixir and Erlang can be found on [the Elixir website](https://elixir-lang.org/install.html). In most cases, installing Elixir will get you a copy of Erlang as well.
* Node.js. If you've been blessed to have never needed to download Node on your device, you can end that streak now by visiting [the Node.js download page](https://nodejs.org/en/download)
* PostgreSQL, which you'll need running. You can find information on how to install it on [the PostgreSQL download page](https://www.postgresql.org/download/) as well. This project is set up to assume that the database username is "postgres" and the password is "postgres"
```bash
$ cd bookmarker
$ mix deps.get # Install Elixir dependencies
$ mix ecto.setup # Set up the database
$ cd assets
$ npm install # Install Node dependencies
$ cd ..
$ mix phx.server # Run the server
```
You can then navigate to localhost:4000 to find the front end of the
application.
## Details
The form submits four pieces of data:
@ -37,31 +56,6 @@ The user's page is accessible by accessing the `/u/:id` route, where `:id` is th
When making calls to the API, the client passes an `Authorization` header to their request including their ID, such as `Authorization: Basic 1234...`. If this header is omitted or malformed, the server returns a 401 status code. Not production-grade by any means, but not bad for a cat bookmarking app.
## Running the server
To run the server, you'll need Elixir installed on your device, which depends
on Erlang. Detailed instructions on how to install Elixir and Erlang can be
found on [the Elixir website](https://elixir-lang.org/install.html). In most
cases, installing Elixir will get you a copy of Erlang as well.
Additionally, you'll need to have PostgreSQL installed and running. You can
find information on installing PostgreSQL on
[it's website](https://www.postgresql.org/download/) as well. This project is
set up to assume that the database username is "postgres" and the password is
"postgres"
```bash
$ cd bookmarker
$ mix deps.get # Install Elixir dependencies
$ mix ecto.setup # Set up the database
$ cd assets
$ npm install # Install Node dependencies
$ cd ..
$ mix phx.server # Run the server
```
You can then navigate to localhost:4000 to find the front end of the
application.
## Reading the code
Phoenix automatically generates a lot of stuff that isn't really relevant to
this project, so there's really only a few places you need to focus on.

View File

@ -1,67 +0,0 @@
# Background
As a Canadian Sheep Federation intern, you will be tasked with creating
and developing web applications and APIs. This take home assignment is
designed to test your knowledge of the concepts involved.
You will create the following:
- An API that writes to a data store
- A web application that consumes the API you\'ve developed and a
public API of your choosing
If you\'ve never created an API or a web-application, don\'t worry. Give
it your best shot and leave detailed comments and documentation for what
you don\'t know and what you think it should do.
This task should take approximately two hours
Select your public API from here:
<https://github.com/public-apis/public-apis>
# API
You must build a REST-ful API that represents some sort of form. The
form should mesh well with the public API you\'ve chosen. For instance,
if you\'ve chosen a movie API for your public API, this form could be a
survey about a specific movie or movies of a certain director.
The form must have three (3!) fields minimum.
The language and framework in which the API is implemented is up to you.
At the CSF, we use Node.js and express.
The API must store the form data in some permanent data store. At the
CSF, we use mongodb. A good option for this assessment could be sqlite.
The API must have the following endpoints:
- POST /: Takes in the form and stores it in your chosen data store.
Should return the id of the newly created form response.
- GET /{id}: Returns the form corresponding to the id. E.g. GET /1
would return the form corresponding to the id 1
- GET /: Returns all responses to the form
Be sure to document your code thoroughly and include instructions for
how to run your api.
# Web application
You must build a web application that:
- Allows users to query the public API you\'ve selected
- Allows users to enter responses to the form you designed earlier and
view the other responses to the form
# Bonus Points
## Discuss how the application and api could be extended and improved
## Discuss how the application and api should be deployed
## Intuitive design and user interface
# Submission
Fork this repository and create a pull request for your branch back into
this repo once completed.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,22 @@
{application,bookmarker,
[{compile_env,[{bookmarker,['Elixir.BookmarkerWeb.Gettext'],error}]},
{applications,
[kernel,stdlib,elixir,logger,runtime_tools,phoenix,phoenix_ecto,
ecto_sql,postgrex,phoenix_html,phoenix_live_reload,
phoenix_live_view,phoenix_live_dashboard,esbuild,swoosh,
telemetry_metrics,telemetry_poller,gettext,jason,plug_cowboy]},
{description,"bookmarker"},
{modules,
['Elixir.Bookmarker','Elixir.Bookmarker.Application',
'Elixir.Bookmarker.Bookmark','Elixir.Bookmarker.Mailer',
'Elixir.Bookmarker.Repo','Elixir.BookmarkerWeb',
'Elixir.BookmarkerWeb.APIController',
'Elixir.BookmarkerWeb.AppController','Elixir.BookmarkerWeb.AppView',
'Elixir.BookmarkerWeb.Endpoint','Elixir.BookmarkerWeb.ErrorHelpers',
'Elixir.BookmarkerWeb.ErrorView','Elixir.BookmarkerWeb.Gettext',
'Elixir.BookmarkerWeb.LayoutView','Elixir.BookmarkerWeb.Router',
'Elixir.BookmarkerWeb.Router.Helpers',
'Elixir.BookmarkerWeb.Telemetry']},
{registered,[]},
{vsn,"0.1.0"},
{mod,{'Elixir.Bookmarker.Application',[]}}]}.

View File

@ -0,0 +1 @@
../../../../priv

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,6 @@
{application,castore,
[{applications,[kernel,stdlib,elixir,logger]},
{description,"Up-to-date CA certificate store."},
{modules,['Elixir.CAStore']},
{registered,[]},
{vsn,"1.0.5"}]}.

1
_build/dev/lib/castore/priv Symbolic link
View File

@ -0,0 +1 @@
../../../../deps/castore/priv

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,6 @@
{application,connection,
[{applications,[kernel,stdlib,elixir]},
{description,"Connection behaviour for connection processes\n"},
{modules,['Elixir.Connection']},
{registered,[]},
{vsn,"1.1.0"}]}.

View File

1
_build/dev/lib/cowboy/ebin Symbolic link
View File

@ -0,0 +1 @@
../../../../deps/cowboy/ebin

View File

@ -0,0 +1,5 @@
{deps,[{cowlib,".*",{git,"https://github.com/ninenines/cowlib","2.12.1"}},
{ranch,".*",{git,"https://github.com/ninenines/ranch","1.8.0"}}]}.
{erl_opts,[debug_info,warn_export_vars,warn_shadow_vars,warn_obsolete_guard,
warn_missing_spec,warn_untyped_record]}.
{overrides,[]}.

View File

@ -0,0 +1,10 @@
{application,cowboy_telemetry,
[{description,"Telemetry instrumentation for Cowboy"},
{vsn,"0.4.0"},
{registered,[]},
{applications,[kernel,stdlib,telemetry]},
{env,[]},
{modules,[cowboy_telemetry_h]},
{licenses,["Apache 2.0"]},
{links,[{"Github",
"https://github.com/beam-telemetry/cowboy_telemetry"}]}]}.

View File

@ -0,0 +1,3 @@
{erl_opts,[debug_info]}.
{deps,[{telemetry,"~> 1.0"},{cowboy,"~> 2.7"}]}.
{overrides,[]}.

View File

1
_build/dev/lib/cowlib/ebin Symbolic link
View File

@ -0,0 +1 @@
../../../../deps/cowlib/ebin

View File

@ -0,0 +1 @@
../../../../deps/cowlib/include

View File

@ -0,0 +1 @@
{overrides,[]}.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,28 @@
{application,db_connection,
[{applications,[kernel,stdlib,elixir,logger,telemetry]},
{description,"Database connection behaviour for database transactions and connection pooling\n"},
{modules,['Elixir.DBConnection','Elixir.DBConnection.App',
'Elixir.DBConnection.Backoff',
'Elixir.DBConnection.Connection',
'Elixir.DBConnection.ConnectionError',
'Elixir.DBConnection.ConnectionPool',
'Elixir.DBConnection.ConnectionPool.Pool',
'Elixir.DBConnection.EncodeError',
'Elixir.DBConnection.Holder',
'Elixir.DBConnection.LogEntry',
'Elixir.DBConnection.Ownership',
'Elixir.DBConnection.Ownership.Manager',
'Elixir.DBConnection.Ownership.Proxy',
'Elixir.DBConnection.OwnershipError',
'Elixir.DBConnection.Pool',
'Elixir.DBConnection.PrepareStream',
'Elixir.DBConnection.Query',
'Elixir.DBConnection.Stream',
'Elixir.DBConnection.Task',
'Elixir.DBConnection.TransactionError',
'Elixir.DBConnection.Watcher',
'Elixir.Enumerable.DBConnection.PrepareStream',
'Elixir.Enumerable.DBConnection.Stream']},
{registered,[]},
{vsn,"2.6.0"},
{mod,{'Elixir.DBConnection.App',[]}}]}.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More