Changes between Version 2 and Version 3 of HashSourceCodes
- Timestamp:
- Sep 25, 2008, 12:34:42 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HashSourceCodes
v2 v3 11 11 == C == 12 12 {{{ 13 13 #!c 14 14 #include <stdio.h> 15 15 #include <stdlib.h> … … 62 62 == C++ == 63 63 {{{ 64 #!cpp 64 65 #include <iostream> 65 66 #include <fstream> … … 114 115 == Java == 115 116 {{{ 117 #!java 116 118 import java.io.File; 117 119 import java.io.FileInputStream; … … 159 161 160 162 while (longBuffer.hasRemaining()) { 163 164 161 165 162 166 hash += longBuffer.get(); … … 295 299 == Python == 296 300 {{{ 301 #!python 297 302 def hashFile(name): 298 303 try: … … 434 439 435 440 {{{ 441 #!php 436 442 function OpenSubtitlesHash($file) 437 443 { … … 500 506 501 507 {{{ 508 #!perl 502 509 #!/usr/bin/perl 503 510 use strict; … … 556 563 This is a quick translation/transliteration of the Perl script. 557 564 {{{ 565 #!ruby 558 566 559 567 class Hasher … … 624 632 Another more "rubyesque" implementation. 625 633 {{{ 634 #!ruby 626 635 627 636 class MovieHasher