This file contains hidden or 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
| */ |
This file contains hidden or 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
| NT |
This file contains hidden or 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
| DISTRO: | |
| Distributor ID: Ubuntu | |
| Description: Ubuntu 14.04 LTS | |
| Release: 14.04 | |
| Codename: trusty | |
| KERNEL: | |
| Linux xubuntu-try4 3.13.0-29-generic #53-Ubuntu SMP Wed Jun 4 21:00:20 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux | |
| DMIDECODE: |
This file contains hidden or 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
| CMD='h;s/(.)/\1\1\1/g;x;s/(.)/\1 \1/g;H;s/(.) (.)/\1\1\2/g;H;x' sh -c 'echo "|" | sed -r "$CMD" | sed -r "$CMD" | sed -r "$CMD" | sed -r "$CMD"' | |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| | |
| | || || || || || || || || || || || || || || || || || || || || || || || || || || | | |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| | |
| ||| |||||| |||||| |||||| |||||| |||||| |||||| |||||| |||||| ||| | |
| | | | || | | || | | || | | || | | || | | || | | || | | || | | | | |
| ||| |||||| |||||| |||||| |||||| |||||| |||||| |||||| |||||| ||| | |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| | |
| | || || || || || || || || || || || || || || || || || || || || || || || || || || | | |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| |
This file contains hidden or 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
| # Sierpinksi Triangle, in sed: | |
| $ f() { sed -r 'h;s/(.)/\1\1/g;x;s/(.)/\1 /g;H;x'; } | |
| $ echo o|f | |
| oo | |
| o | |
| $ echo o|f|f | |
| oooo |
This file contains hidden or 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
| # Cantor's dust, in sed | |
| $ CMD='h;H;H;x;s/\n//g;h;s/./ /g;H;x;h;H;x;s/\n *$//' sh -c 'echo o | sed "$CMD"' | |
| ooo | |
| ooo | |
| $ CMD='h;H;H;x;s/\n//g;h;s/./ /g;H;x;h;H;x;s/\n *$//' sh -c 'echo o | sed "$CMD" | sed "$CMD"' | |
| ooooooooo | |
| ooooooooo | |
This file contains hidden or 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
| class TestAssertEqualDeep(T.TestCase): | |
| def test_numbers(self): | |
| assert_equal_deep(1, 1) | |
| with assert_raises_with_args(AssertionError, '\nUnequal at / : 1 != 2'): | |
| assert_equal_deep(1, 2) | |
| def test_strings(self): | |
| assert_equal_deep('foo', 'foo') | |
| with assert_raises_with_args(AssertionError, "\nUnequal at / : 'foo' != 'bar'"): | |
| assert_equal_deep('foo', 'bar') |
This file contains hidden or 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
| #!/usr/bin/env python | |
| "pudb test script" | |
| def main(): | |
| "The entry point" | |
| from pudb.debugger import Debugger | |
| import urwid.html_fragment | |
| dbg = Debugger() |
This file contains hidden or 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
| #!/usr/bin/env python | |
| "pudb test script" | |
| from pudb.debugger import Debugger | |
| def dedent(text): | |
| "dedent and strip" | |
| from textwrap import dedent as _dedent | |
| return _dedent(text).strip('\n') | |
| D = dedent |
This file contains hidden or 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
| package { | |
| import flash.text.TextField; | |
| import flash.text.StyleSheet; | |
| import flash.display.Sprite; | |
| import flash.system.Capabilities; | |
| public class HelloWorld extends Sprite { | |
| private var textField:TextField; |