[linear-classify-demo]: Fix dead link and embed demo locally into repo.#315
Open
andrei-simion wants to merge 1 commit intocs231n:masterfrom
Open
[linear-classify-demo]: Fix dead link and embed demo locally into repo.#315andrei-simion wants to merge 1 commit intocs231n:masterfrom
andrei-simion wants to merge 1 commit intocs231n:masterfrom
Conversation
The linear classification notes linked to an interactive demo at:
http://vision.stanford.edu/teaching/cs231n/linear-classify-demo
which is now a dead URL. The demo was later moved to:
http://vision.stanford.edu/teaching/cs231n-demos/linear-classify/
This commit embeds the demo directly in the repository under:
assets/linear-classify-demo/
mirroring the existing pattern used by:
assets/conv-demo/
Demo source attribution / original URL:
http://vision.stanford.edu/teaching/cs231n-demos/linear-classify/
The now dead link was last updated in commit ed95fdf
This avoids issues with future broken external URLs as the demo is self-contained within the repo.
And by version controlling the demo, future contributions can be made to the demo itself.
The link in linear-classify.md is updated to a relative path so it remains valid regardless of hosting.
Changes to the original demo source have been kept minimal:
- MathJax CDN: http://cdn.mathjax.org/mathjax/latest/MathJax.js
changed to https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js
(cdn.mathjax.org was shut down and no longer resolves)
- Google Fonts: http:// upgraded to https://
All other source code is unchanged from the original. e.g.
```
$ wget -qO- "http://vision.stanford.edu/teaching/cs231n-demos/linear-classify/" | diff - assets/linear-classify-demo/index.html
7c7
< src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
---
> src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
17c17
< <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'>
---
> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300' rel='stylesheet' type='text/css'>
```
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The linear classification notes linked to an interactive demo at:
http://vision.stanford.edu/teaching/cs231n/linear-classify-demo
which is now a dead URL. The demo seems to be exist here:
http://vision.stanford.edu/teaching/cs231n-demos/linear-classify/
This commit embeds the demo directly in the repository under:
assets/linear-classify-demo/
mirroring the existing pattern used by:
assets/conv-demo/
Demo source attribution / original URL:
http://vision.stanford.edu/teaching/cs231n-demos/linear-classify/
The now dead link was last updated in commit ed95fdf
This avoids issues with future broken external URLs as the demo is self-contained within the repo. And by version controlling the demo, future contributions can be made to the demo itself.
The link in linear-classify.md is updated to a relative path so it remains valid regardless of hosting.
Changes to the original demo source have been kept minimal:
All other source code is unchanged from the original. e.g.