Skip to content

Instantly share code, notes, and snippets.

@shehi
shehi / AR_Cache_Repository.php
Created February 28, 2018 12:42 — forked from guiwoda/AR_Cache_Repository.php
AR (Eloquent) vs DM (Doctrine) gist
<?php
namespace App\ActiveRecord;
class PostRepository
{
private $cache;
public function __construct(Cache $cache)
{
// Any set() / get() cache implementation.
@shehi
shehi / Audith Softworks Open-source CLA
Last active October 3, 2016 08:25
Audith Softworks Open-source CLA
### 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;

CSS + HTML only Accordion Element

Read the copy in the accordion sections for some info about how this was made.

A Pen by Alex Bergin on CodePen.

License.