$ telnet elephant.org Trying 194.106.49.114… Connected to elephant.org. Escape character is ‘^]’.
Here’s a little ditty..
_ _ _ ( `\ ( ) ( ) ( )_ /’\_/`\ ( )
| (() | __ _ _ | __ _ _ ___ | ,_) | _ _ _ |
| #!/usr/bin/env python | |
| import compiler.ast | |
| import compiler.visitor as visitor | |
| __author__ = 'Sarah Mount <s.mount@wlv.ac.uk>' | |
| __date__ = 'May 2010' | |
| class ExceptionFinder(visitor.ASTVisitor): |
| $ dpkg --get-selections > ~/Dropbox/installed-packages.log |
| (defun hilite-todos () | |
| (highlight-lines-matching-regexp "\\<\\(FIXME\\|WRITEME\\|WRITEME!\\|TODO\\|BUG\\):?" | |
| 'hi-green-b) | |
| ) | |
| (add-hook '$WHATEVER-mode-hook 'hilite-todos) | |
| #!/usr/bin/env python | |
| """ | |
| Use Google to translate text in one language to another. | |
| Original code from here: | |
| http://thebigbrowser.blogspot.com/2010/08/use-google-translate-from-console.html | |
| by coldpizza |
| def intellisplit(base_string): | |
| """Intelligently split and capitalise a string. | |
| Turns variable names which may be underscored or | |
| in CamelCase into something human readable. | |
| e.g. foo_bar should become Foo bar | |
| fooBar should become Foo bar | |
| etc. | |
| """ |
| >>> class Foo: | |
| ... | |
| ... | |
| File "<stdin>", line 3 | |
| ^ | |
| IndentationError: expected an indented block | |
| >>> class Foo: | |
| ... def __init__(self): | |
| ... return |
$ telnet elephant.org Trying 194.106.49.114… Connected to elephant.org. Escape character is ‘^]’.
Here’s a little ditty..
_ _ _ ( `\ ( ) ( ) ( )_ /’\_/`\ ( )
| (() | __ _ _ | __ _ _ ___ | ,_) | _ _ _ |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
| <head> | |
| <title>Live chat example</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
| <meta name="robots" content="All" /> | |
| <meta name="copyright" content="University of Wolverhampton" /> | |
| <link id="theme" rel="stylesheet" type="text/css" href="/css/style.css" title="theme" /> |
| #!/usr/bin/env sh | |
| # (C) Sarah Mount http://snim2.org | |
| # | |
| # Execute a given command and print performance information in a readable manner. | |
| # | |
| # Example: | |
| # | |
| # ./timeit.sh gcc hello.c |
| #!/usr/bin/env python | |
| # | |
| # Capture and display screenshots. | |
| # Requires ImageMagick, PIL and PyGame. | |
| # | |
| import os | |
| import pygame | |
| from pygame.locals import * |