GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allow using curl to download if wget is not installed. · alabarga/DeepLearningTutorials@fc006cc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • data
    • download.sh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎data/download.sh‎

Copy file name to clipboard
+17-4Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
#!/bin/sh
22

3-
wget -c http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist.pkl.gz
4-
wget -c http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist_py3k.pkl.gz
5-
wget -c http://www.iro.umontreal.ca/~lisa/deep/data/Nottingham.zip && unzip -u Nottingham.zip
6-
wget -c http://www.iro.umontreal.ca/~lisa/deep/midi.zip && unzip -u midi.zip -d ../code && echo "extracted Modified Python MIDI package (GPL)"
3+
which wget >/dev/null 2>&1
4+
WGET=$?
5+
which curl >/dev/null 2>&1
6+
CURL=$?
7+
if [ "$WGET" -eq 0 ]; then
8+
DL_CMD="wget -c"
9+
elif [ "$CURL" -eq 0 ]; then
10+
DL_CMD="curl -C - -O"
11+
else
12+
echo "You need wget or curl installed to download"
13+
exit 1
14+
fi
15+
16+
$DL_CMD http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist.pkl.gz
17+
$DL_CMD http://www.iro.umontreal.ca/~lisa/deep/data/mnist/mnist_py3k.pkl.gz
18+
$DL_CMD http://www.iro.umontreal.ca/~lisa/deep/data/Nottingham.zip && unzip -u Nottingham.zip
19+
$DL_CMD http://www.iro.umontreal.ca/~lisa/deep/midi.zip && unzip -u midi.zip -d ../code && echo "extracted Modified Python MIDI package (GPL)"

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.