“Neue” Code-Antworten

Neue

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

* feedbacked
Fair Flatworm

Neue

# 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

Neue

> cpanm --interactive Task::Kensho
Fair Flatworm

Neue

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

Neue

# 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

Neue

> cpanm --interactive Task::Kensho
Fair Flatworm

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen