Random Key Generator Fount 45-75 HTML_CodeSniffer Some kind of document outline viewer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function asBlog($blogId, $function) { | |
return function(...$arguments) use($blogId, $function) { | |
switch_to_blog($blogId); | |
$output = $function(...$arguments); | |
restore_current_blog(); | |
return $output; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Controller\Plugin; | |
use Zend\Mvc\Controller\Plugin\AbstractPlugin; | |
use Zend\Session\Container; | |
use Zend\Session\ManagerInterface as Manager; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const $ = require('jquery'); | |
const keycode = require('keycode'); | |
$('[role=button]').on('keydown', function(e) { | |
if(keycode(e) === 'space') { | |
e.preventDefault(); | |
$(this).trigger('click'); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const path = require('path'); | |
const retina = require('is-retina'); | |
module.exports = function applyRetinafy(selector) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
expandobem-test@1.0.0 | |
├─┬ expandobem@0.0.4 | |
│ ├── amp-includes@1.0.2 | |
│ ├─┬ merge-deep@1.0.1 | |
│ │ ├─┬ clone-deep@0.1.1 | |
│ │ │ ├─┬ for-own@0.1.2 | |
│ │ │ │ └── for-in@0.1.3 | |
│ │ │ ├── is-plain-object@0.1.0 | |
│ │ │ ├── kind-of@0.1.2 | |
│ │ │ └── mixin-object@0.1.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global config */ | |
'use strict'; | |
module.exports = { | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Creates a unique filename by appending a number | |
* | |
* i.e. if image.jpg already exists, returns | |
* image2.jpg | |
*/ | |
function uniqueFilename($path, $name, $ext) { | |
$output = $name; | |
$basename = basename($name, '.' . $ext); |
- Add this file to application/libraries (or, if you are already extending the Validator class, add the contents there).
- Remove Validator alias from config/application.php in order to avoid conflicts.
- Add
"required_if_attribute" => "The :attribute field is required."
to application/language/[language]/validation.php.
Define the rule using:
required_if_attribute:[field],[operator],[value]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- A JavaScript library for creating and modifying CSS rules. |