Peter Naur's classic 1985 essay "Programming as Theory Building" argues that a program is not its source code. A program is a shared mental construct (he uses the word theory) that lives in the minds of the people who work on it. If you lose the people, you lose the program. The code is merely a written representation of the program, and it's lossy, so you can't reconstruct
This file contains 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
# Run the last command as root | |
sudo !! | |
# Serve current directory tree at http://$HOSTNAME:8000/ | |
python -m SimpleHTTPServer | |
# Save a file you edited in vim without the needed permissions | |
:w !sudo tee % | |
# change to the previous working directory | |
cd - | |
# Runs previous command but replacing | |
^foo^bar |
This file contains 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
name | website | genre | mtv | |||
---|---|---|---|---|---|---|
Adele | http://www.facebook.com/9770929278 | http://www.twitter.com/officialadele | Pop | http://www.mtv.com/artists/adele/biography | ||
Joey + Rory | http://www.facebook.com/15044507815 | http://www.twitter.com/joeyandrory | Country | http://www.cmt.com/artists/joey-rory/biography | ||
Draaco Aventura | http://www.facebook.com/856796091053581 | http://www.twitter.com/DraacoAventura | http://www.bandpage.com/draacoaventura | Pop Latino | http://www.mtv.com/artists/draaco-aventura/biography | |
Justin Bieber | http://www.facebook.com/309570926875 | http://www.twitter.com/justinbieber | http://www.justinbiebermusic.com | Pop | http://www.mtv.com/artists/justin-bieber/biography | |
Peer van Mladen | http://www.facebook.com/264487966 | http://www.twitter.com/Predrag_Jugovic | http://pejaintergroup.eu/Peer_van_Mladen.html | House | http://www.mtv.com/artists/peer-van-mladen/biography | |
Chris Janson | http://www.facebook.com/296647641825 | http://www.twitter.com/janson_chris | http://www.chrisjanson.com | Country | http://www.cmt.com/a |
This file contains 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
# (C) Mathieu Blondel, November 2013 | |
# License: BSD 3 clause | |
import numpy as np | |
def ranking_precision_score(y_true, y_score, k=10): | |
"""Precision at rank k | |
Parameters |