mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Change to triple-backtick code fences.
Former-commit-id: 81d38ed0155734a72d98b2e16425635da907aa01
This commit is contained in:
36
vendor/benchmark.js/README.md
vendored
36
vendor/benchmark.js/README.md
vendored
@@ -20,15 +20,15 @@ Benchmark.js has been tested in at least Adobe AIR 3.1, Chrome 5-21, Firefox 1.5
|
|||||||
|
|
||||||
In a browser or Adobe AIR:
|
In a browser or Adobe AIR:
|
||||||
|
|
||||||
~~~ html
|
```html
|
||||||
<script src="benchmark.js"></script>
|
<script src="benchmark.js"></script>
|
||||||
~~~
|
```
|
||||||
|
|
||||||
Optionally, expose Java’s nanosecond timer by adding the `nano` applet to the `<body>`:
|
Optionally, expose Java’s nanosecond timer by adding the `nano` applet to the `<body>`:
|
||||||
|
|
||||||
~~~ html
|
```html
|
||||||
<applet code="nano" archive="nano.jar"></applet>
|
<applet code="nano" archive="nano.jar"></applet>
|
||||||
~~~
|
```
|
||||||
|
|
||||||
Or enable Chrome’s microsecond timer by using the [command line switch](http://peter.sh/experiments/chromium-command-line-switches/#enable-benchmarking):
|
Or enable Chrome’s microsecond timer by using the [command line switch](http://peter.sh/experiments/chromium-command-line-switches/#enable-benchmarking):
|
||||||
|
|
||||||
@@ -36,37 +36,37 @@ Or enable Chrome’s microsecond timer by using the [command line switch](http:/
|
|||||||
|
|
||||||
Via [npm](http://npmjs.org/):
|
Via [npm](http://npmjs.org/):
|
||||||
|
|
||||||
~~~ bash
|
```bash
|
||||||
npm install benchmark
|
npm install benchmark
|
||||||
~~~
|
```
|
||||||
|
|
||||||
In [Node.js](http://nodejs.org/) and [RingoJS v0.8.0+](http://ringojs.org/):
|
In [Node.js](http://nodejs.org/) and [RingoJS v0.8.0+](http://ringojs.org/):
|
||||||
|
|
||||||
~~~ js
|
```js
|
||||||
var Benchmark = require('benchmark');
|
var Benchmark = require('benchmark');
|
||||||
~~~
|
```
|
||||||
|
|
||||||
Optionally, use the [microtime module](https://github.com/wadey/node-microtime) by Wade Simmons:
|
Optionally, use the [microtime module](https://github.com/wadey/node-microtime) by Wade Simmons:
|
||||||
|
|
||||||
~~~ bash
|
```bash
|
||||||
npm install microtime
|
npm install microtime
|
||||||
~~~
|
```
|
||||||
|
|
||||||
In [RingoJS v0.7.0-](http://ringojs.org/):
|
In [RingoJS v0.7.0-](http://ringojs.org/):
|
||||||
|
|
||||||
~~~ js
|
```js
|
||||||
var Benchmark = require('benchmark').Benchmark;
|
var Benchmark = require('benchmark').Benchmark;
|
||||||
~~~
|
```
|
||||||
|
|
||||||
In [Rhino](http://www.mozilla.org/rhino/):
|
In [Rhino](http://www.mozilla.org/rhino/):
|
||||||
|
|
||||||
~~~ js
|
```js
|
||||||
load('benchmark.js');
|
load('benchmark.js');
|
||||||
~~~
|
```
|
||||||
|
|
||||||
In an AMD loader like [RequireJS](http://requirejs.org/):
|
In an AMD loader like [RequireJS](http://requirejs.org/):
|
||||||
|
|
||||||
~~~ js
|
```js
|
||||||
require({
|
require({
|
||||||
'paths': {
|
'paths': {
|
||||||
'benchmark': 'path/to/benchmark'
|
'benchmark': 'path/to/benchmark'
|
||||||
@@ -88,11 +88,11 @@ require({
|
|||||||
Benchmark.platform = platform;
|
Benchmark.platform = platform;
|
||||||
console.log(Benchmark.platform.name);
|
console.log(Benchmark.platform.name);
|
||||||
});
|
});
|
||||||
~~~
|
```
|
||||||
|
|
||||||
Usage example:
|
Usage example:
|
||||||
|
|
||||||
~~~ js
|
```js
|
||||||
var suite = new Benchmark.Suite;
|
var suite = new Benchmark.Suite;
|
||||||
|
|
||||||
// add tests
|
// add tests
|
||||||
@@ -116,7 +116,7 @@ suite.add('RegExp#test', function() {
|
|||||||
// > RegExp#test x 4,161,532 +-0.99% (59 cycles)
|
// > RegExp#test x 4,161,532 +-0.99% (59 cycles)
|
||||||
// > String#indexOf x 6,139,623 +-1.00% (131 cycles)
|
// > String#indexOf x 6,139,623 +-1.00% (131 cycles)
|
||||||
// > Fastest is String#indexOf
|
// > Fastest is String#indexOf
|
||||||
~~~
|
```
|
||||||
|
|
||||||
## BestieJS
|
## BestieJS
|
||||||
|
|
||||||
|
|||||||
4
vendor/docdown/README.md
vendored
4
vendor/docdown/README.md
vendored
@@ -12,7 +12,7 @@ For a list of upcoming features, check out our [roadmap](https://github.com/jdal
|
|||||||
|
|
||||||
Usage example:
|
Usage example:
|
||||||
|
|
||||||
~~~ php
|
```php
|
||||||
require("docdown.php");
|
require("docdown.php");
|
||||||
|
|
||||||
// generate Markdown
|
// generate Markdown
|
||||||
@@ -20,7 +20,7 @@ $markdown = docdown(array(
|
|||||||
"path" => $filepath,
|
"path" => $filepath,
|
||||||
"url" => "https://github.com/username/project/blob/master/my.js"
|
"url" => "https://github.com/username/project/blob/master/my.js"
|
||||||
));
|
));
|
||||||
~~~
|
```
|
||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
||||||
|
|||||||
2
vendor/docdown/src/DocDown/Entry.php
vendored
2
vendor/docdown/src/DocDown/Entry.php
vendored
@@ -140,7 +140,7 @@ class Entry {
|
|||||||
preg_match('#\*\s*@example\s+([\s\S]*?)(?=\*\s\@[a-z]|\*/)#', $this->entry, $result);
|
preg_match('#\*\s*@example\s+([\s\S]*?)(?=\*\s\@[a-z]|\*/)#', $this->entry, $result);
|
||||||
if (count($result)) {
|
if (count($result)) {
|
||||||
$result = trim(preg_replace('/(?:^|\n)\s*\* ?/', "\n", $result[1]));
|
$result = trim(preg_replace('/(?:^|\n)\s*\* ?/', "\n", $result[1]));
|
||||||
$result = '~~~ ' . $this->lang . "\n" . $result . "\n~~~";
|
$result = '```' . $this->lang . "\n" . $result . "\n```";
|
||||||
}
|
}
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|||||||
24
vendor/platform.js/README.md
vendored
24
vendor/platform.js/README.md
vendored
@@ -24,31 +24,31 @@ Platform.js has been tested in at least Adobe AIR 3.1, Chrome 5-21, Firefox 1.5-
|
|||||||
|
|
||||||
In a browser or Adobe AIR:
|
In a browser or Adobe AIR:
|
||||||
|
|
||||||
~~~ html
|
```html
|
||||||
<script src="platform.js"></script>
|
<script src="platform.js"></script>
|
||||||
~~~
|
```
|
||||||
|
|
||||||
Via [npm](http://npmjs.org/):
|
Via [npm](http://npmjs.org/):
|
||||||
|
|
||||||
~~~ bash
|
```bash
|
||||||
npm install platform
|
npm install platform
|
||||||
~~~
|
```
|
||||||
|
|
||||||
In [Node.js](http://nodejs.org/) and [RingoJS](http://ringojs.org/):
|
In [Node.js](http://nodejs.org/) and [RingoJS](http://ringojs.org/):
|
||||||
|
|
||||||
~~~ js
|
```js
|
||||||
var platform = require('platform');
|
var platform = require('platform');
|
||||||
~~~
|
```
|
||||||
|
|
||||||
In [Rhino](http://www.mozilla.org/rhino/):
|
In [Rhino](http://www.mozilla.org/rhino/):
|
||||||
|
|
||||||
~~~ js
|
```js
|
||||||
load('platform.js');
|
load('platform.js');
|
||||||
~~~
|
```
|
||||||
|
|
||||||
In an AMD loader like [RequireJS](http://requirejs.org/):
|
In an AMD loader like [RequireJS](http://requirejs.org/):
|
||||||
|
|
||||||
~~~ js
|
```js
|
||||||
require({
|
require({
|
||||||
'paths': {
|
'paths': {
|
||||||
'platform': 'path/to/platform'
|
'platform': 'path/to/platform'
|
||||||
@@ -57,11 +57,11 @@ require({
|
|||||||
['platform'], function(platform) {
|
['platform'], function(platform) {
|
||||||
console.log(platform.name);
|
console.log(platform.name);
|
||||||
});
|
});
|
||||||
~~~
|
```
|
||||||
|
|
||||||
Usage example:
|
Usage example:
|
||||||
|
|
||||||
~~~ js
|
```js
|
||||||
// on IE10 x86 platform preview running in IE7 compatibility mode on Windows 7 64 bit edition
|
// on IE10 x86 platform preview running in IE7 compatibility mode on Windows 7 64 bit edition
|
||||||
platform.name; // 'IE'
|
platform.name; // 'IE'
|
||||||
platform.version; // '10.0'
|
platform.version; // '10.0'
|
||||||
@@ -85,7 +85,7 @@ info.version; // '11.52'
|
|||||||
info.layout; // 'Presto'
|
info.layout; // 'Presto'
|
||||||
info.os; // 'Mac OS X 10.7.2'
|
info.os; // 'Mac OS X 10.7.2'
|
||||||
info.description; // 'Opera 11.52 (identifying as Firefox 4.0) on Mac OS X 10.7.2'
|
info.description; // 'Opera 11.52 (identifying as Firefox 4.0) on Mac OS X 10.7.2'
|
||||||
~~~
|
```
|
||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
||||||
|
|||||||
4
vendor/qunit-clib/README.md
vendored
4
vendor/qunit-clib/README.md
vendored
@@ -13,7 +13,7 @@ QUnit CLIB has been tested in at least Node.js 0.4.8-0.8.6, Narwhal v0.3.2, Ring
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
~~~ js
|
```js
|
||||||
(function(window) {
|
(function(window) {
|
||||||
|
|
||||||
// use a single load function
|
// use a single load function
|
||||||
@@ -43,7 +43,7 @@ QUnit CLIB has been tested in at least Node.js 0.4.8-0.8.6, Narwhal v0.3.2, Ring
|
|||||||
QUnit.start();
|
QUnit.start();
|
||||||
}
|
}
|
||||||
}(typeof global == 'object' && global || this));
|
}(typeof global == 'object' && global || this));
|
||||||
~~~
|
```
|
||||||
|
|
||||||
## Footnotes
|
## Footnotes
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user