“newid” Código de respuesta

newid

* fix http:// links to https:// where certain (4)

* feedbacked
Fair Flatworm

newid

# Functional style
use Digest::MD5 qw(md5 md5_hex md5_base64);
 
$digest = md5($data);
$digest = md5_hex($data);
$digest = md5_base64($data);
 
# OO style
use Digest::MD5;
 
$ctx = Digest::MD5->new;
 
$ctx->add($data);
$ctx->addfile($file_handle);
 
$digest = $ctx->digest;
$digest = $ctx->hexdigest;
$digest = $ctx->b64digest;
Fair Flatworm

newid

> cpanm --interactive Task::Kensho
Fair Flatworm

newid

There are many different ways to style code with GitHub's markdown. If you have inline code blocks, wrap them in backticks: `var example = true`.  If you've got a longer block of code, you can indent with four spaces:

    if (isAwesome){
      return true
    }

GitHub also supports something called code fencing, which allows for multiple lines without indentation:

```
if (isAwesome){
  return true
}
```

And if you'd like to use syntax highlighting, include the language:

```javascript
if (isAwesome){
  return true
}
```
Fair Flatworm

newid

# Functional styleuse Digest::MD5 qw(md5 md5_hex md5_base64); $digest = md5($data);$digest = md5_hex($data);$digest = md5_base64($data); # OO styleuse Digest::MD5; $ctx = Digest::MD5->new; $ctx->add($data);$ctx->addfile($file_handle); $digest = $ctx->digest;$digest = $ctx->hexdigest;$digest = $ctx->b64digest;
Fair Flatworm

newid

> cpanm --interactive Task::Kensho
Fair Flatworm

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código