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.
| path-start | |
| stroke-width 1 | |
| stroke #ffffff | |
| fill #ffffff | |
| path m 449.96406,299.9134 c -105.26305,-44.48626 -58.60174,-181.58185 42.06956,-174.6907 -20.36609,10.46694 -23.31775,29.99772 -11.68704,48.09021 13.02444,20.2558 -1.19897,52.84856 -18.80577,60.7674 -28.93485,13.02443 -34.72791,47.74999 -11.57675,65.83309 z | |
| path-end | |
| path-start | |
| stroke-width 1 | |
| stroke #de2910 |