Changes between Version 2 and Version 3 of HashSourceCodes


Ignore:
Timestamp:
Sep 25, 2008, 12:34:42 PM (16 years ago)
Author:
guest
Comment:

Added syntax highlighting where possible [Majky]

Legend:

Unmodified
Added
Removed
Modified
  • HashSourceCodes

    v2 v3  
    1111== C ==
    1212{{{
    13 
     13#!c
    1414#include <stdio.h>
    1515#include <stdlib.h>
     
    6262== C++ ==
    6363{{{
     64#!cpp
    6465 #include <iostream>
    6566 #include <fstream>
     
    114115== Java ==
    115116{{{
     117#!java
    116118import java.io.File;
    117119import java.io.FileInputStream;
     
    159161               
    160162                while (longBuffer.hasRemaining()) {
     163
     164
    161165
    162166                        hash += longBuffer.get();
     
    295299== Python ==
    296300{{{
     301#!python
    297302def hashFile(name):
    298303      try:
     
    434439
    435440{{{
     441#!php
    436442function OpenSubtitlesHash($file)
    437443{
     
    500506
    501507{{{
     508#!perl
    502509#!/usr/bin/perl
    503510use strict;
     
    556563This is a quick translation/transliteration of the Perl script.
    557564{{{
     565#!ruby
    558566
    559567class Hasher
     
    624632Another more "rubyesque" implementation.
    625633{{{
     634#!ruby
    626635
    627636class MovieHasher