Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of randomSearch by
searchText.h@1:f2747e954f10, 2015-12-17 (annotated)
- Committer:
- AndyA
- Date:
- Thu Dec 17 21:21:06 2015 +0000
- Revision:
- 1:f2747e954f10
Added mouse stuff and caps lock fun
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| AndyA | 1:f2747e954f10 | 1 | |
| AndyA | 1:f2747e954f10 | 2 | // number of search terms |
| AndyA | 1:f2747e954f10 | 3 | const int searchStringCount = 6; |
| AndyA | 1:f2747e954f10 | 4 | // search terms. Should be url encoded (e.g. space becomes %20) |
| AndyA | 1:f2747e954f10 | 5 | const char *searches[] = {"hot%20cheese", |
| AndyA | 1:f2747e954f10 | 6 | "big%20show", |
| AndyA | 1:f2747e954f10 | 7 | "hot%20cheese", |
| AndyA | 1:f2747e954f10 | 8 | "magic%20mike%20xxl", |
| AndyA | 1:f2747e954f10 | 9 | "hot%20wet%20cheese", |
| AndyA | 1:f2747e954f10 | 10 | "hot%20wet%20-cheese" |
| AndyA | 1:f2747e954f10 | 11 | }; |
| AndyA | 1:f2747e954f10 | 12 | // pause between searches in seconds |
| AndyA | 1:f2747e954f10 | 13 | const float delayBetweenSearches = 120; |
| AndyA | 1:f2747e954f10 | 14 | |
| AndyA | 1:f2747e954f10 | 15 | // start of the search string |
| AndyA | 1:f2747e954f10 | 16 | const char searchPrefix[] = "https://www.google.co.uk/search?q="; |
| AndyA | 1:f2747e954f10 | 17 | |
| AndyA | 1:f2747e954f10 | 18 | // end of the seach string (an image search with safe search switched off) |
| AndyA | 1:f2747e954f10 | 19 | const char searchSuffix[] = "&safe=off&tbm=isch"; |
| AndyA | 1:f2747e954f10 | 20 | |
| AndyA | 1:f2747e954f10 | 21 |
