User Tools

Site Tools


teaching

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
teaching [2020/04/18 02:57]
admin created
teaching [2020/04/19 17:41]
admin
Line 1: Line 1:
 ====== Teaching ===== ====== Teaching =====
 +==== PHP ====
 +  * [[Teaching/​PHP/​Database]] - Making a database connection
 +
 ==== Bash ==== ==== Bash ====
 [[https://​colornames.org|colornames.org]] is trying to name all 16.7M colours. ​ They provide the data for download. ​ Can we find out which colour has the most votes? ​ We can string together some of the tools we've learned to use to find the answer. ​ [[https://​colornames.org|colornames.org]] is trying to name all 16.7M colours. ​ They provide the data for download. ​ Can we find out which colour has the most votes? ​ We can string together some of the tools we've learned to use to find the answer. ​
 [[https://​news.ycombinator.com/​item?​id=22853186|Source]] [[https://​news.ycombinator.com/​item?​id=22853186|Source]]
 <code bash> <code bash>
-$ curl -sL https://​colornames.org/​download/​colornames.zip | zcat | sort -nk3 -t, | tail -n10+$ curl -sL https://​colornames.org/​download/​colornames.zip | zcat | sort -nk3 -t, | tail
 486d83,Blue Loneliness,​0.069 486d83,Blue Loneliness,​0.069
 123456,​Incremental Blue,0.071 123456,​Incremental Blue,0.071
teaching.txt ยท Last modified: 2020/04/19 17:41 by admin