01/13/2012. From a lecture by Professor John Ousterhout at Stanford, class CS140
Here's today's thought for the weekend. A little bit of slope makes up for a lot of Y-intercept.
[Laughter]
| #! /usr/bin/env python | |
| """ Convert values between RGB hex codes and xterm-256 color codes. | |
| Nice long listing of all 256 colors and their codes. Useful for | |
| developing console color themes, or even script output schemes. | |
| Resources: | |
| * http://en.wikipedia.org/wiki/8-bit_color | |
| * http://en.wikipedia.org/wiki/ANSI_escape_code |
| <?php | |
| /** | |
| * Dirty, dirty Reddit bot: Decronym | |
| */ | |
| class Reddit { | |
| const USERNAME = 'Decronym'; | |
| const PASSWORD = '***'; | |
| const CLIENTID = '***'; | |
| const SECRET = '***'; |
| # -*- coding: utf-8 -*- | |
| """Demonstrate high quality docstrings. | |
| Module-level docstrings appear as the first "statement" in a module. Remember, | |
| that while strings are regular Python statements, comments are not, so an | |
| inline comment may precede the module-level docstring. | |
| After importing a module, you can access this special string object through the | |
| ``__doc__`` attribute; yes, it's actually available as a runtime attribute, | |
| despite not being given an explicit name! The ``__doc__`` attribute is also |
| import networkx as nx | |
| import graph_tool as gt | |
| def get_prop_type(value, key=None): | |
| """ | |
| Performs typing and value conversion for the graph_tool PropertyMap class. | |
| If a key is provided, it also ensures the key is in a format that can be |
www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm. Will not work if proxied (source).update: A minor variant of the viru
| This work, excluding the Arch Linux logo, is made available under CC0: https://creativecommons.org/publicdomain/zero/1.0/ |
This was explanation by Grant McLean
cpan the CPAN shell has been shipped with Perl since about 1997. When you run it the first time it asks a bunch of questions and saves the answers in a config file. Then you can install a module by running:
cpan -i Module::Name
The shell provides other commands for searching CPAN and looking inside distribution files.
| https://youtu.be/-C-JoyNuQJs?t=39m45s | |
| When I put the reference implementation onto the website I needed to | |
| put a software license on it. | |
| And I looked at all the licenses that were available, and there were a lot | |
| of them. And I decided that the one I liked the best was the MIT License, | |
| which was a notice that you would put on your source and it would say, | |
| "you're allowed to use this for any purpose you want, just leave the | |
| notice in the source and don't sue me." |