Read the copy in the accordion sections for some info about how this was made.
A Pen by Alex Bergin on CodePen.
<?php | |
namespace App\ActiveRecord; | |
class PostRepository | |
{ | |
private $cache; | |
public function __construct(Cache $cache) | |
{ | |
// Any set() / get() cache implementation. |
### Audith Softworks Individual Contributor License Agreement (CLA) | |
Thank you for your interest in contributing to open source software projects (“Projects”) made available by Audith Softworks Ltd or its affiliates (“Audith Softworks”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to Audith Softworks in respect of any of the Projects (collectively “Contributions”). If you have any questions respecting this Agreement, please contact opensource@Audith Softworks.com. | |
You agree that the following terms apply to all of your past, present and future Contributions. Except for the licenses granted in this Agreement, you retain all of your right, title and interest in and to your Contributions. | |
**Copyright License.** You hereby grant, and |
/** | |
* @usage $('body').on('mousemove', throttle(function (event) {console.log('tick');}, 1000)); | |
*/ | |
function throttle(fn, threshhold, scope) { | |
threshhold || (threshhold = 250); | |
var last, | |
deferTimer; | |
return function () { | |
var context = scope || this; |
Read the copy in the accordion sections for some info about how this was made.
A Pen by Alex Bergin on CodePen.