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
| alert("Hello World!") |
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
| i686-apple-darwin9-g++-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5490) | |
| A() | |
| ~B() | |
| ~A() | |
| B() | |
| ~B() | |
| ~A() |
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
| Rehearsal ------------------------------------------------ | |
| map, compact 1.090000 0.040000 1.130000 ( 2.573331) | |
| inject 19.150000 0.370000 19.520000 ( 34.193527) | |
| accumulator 11.760000 0.220000 11.980000 ( 16.703419) | |
| map, reject 1.740000 0.040000 1.780000 ( 2.365760) | |
| -------------------------------------- total: 34.410000sec | |
| user system total real | |
| map, compact 1.080000 0.030000 1.110000 ( 1.440510) | |
| inject 12.800000 0.230000 13.030000 ( 17.273436) |
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 String | |
| ACCENTS = { | |
| "a" => %w{ ã á â }, | |
| "e" => %w{ é ê }, | |
| "i" => %w{ í }, | |
| "o" => %w{ õ ó ô }, | |
| "u" => %w{ ú }, | |
| "c" => %w{ ç } | |
| } | |
| def to_ascii! |