Skip to content

Instantly share code, notes, and snippets.

View pieterbeulque's full-sized avatar

Pieter Beulque pieterbeulque

View GitHub Profile
@pieterbeulque
pieterbeulque / stopwatch.php
Created January 25, 2018 09:19
Easily measure PHP performance timing
<?php
/**
* Little helper class to help you measure server performance
*
* Usage:
* $stopwatch = new Stopwatch();
* $stopwatch->start('My expensive operation');
* // Do expensive operation
* $stopwatch->stop();
*

Setting up a new Mac for development

Let's get you going as fast as possible.

First of all, download xCode from the App Store and install everything (including Command Line Tools).

Brew, brew, baby

Install Homebrew:

@tdreyno
tdreyno / easing.scss
Created May 7, 2011 02:02
Easing functions for Sass 3.1
@function linear() {
@return cubic-bezier(0.250, 0.250, 0.750, 0.750); }
@function ease() {
@return cubic-bezier(0.250, 0.100, 0.250, 1.000); }
@function ease-in() {
@return cubic-bezier(0.420, 0.000, 1.000, 1.000); }
@function ease-in-quad() {
@return cubic-bezier(0.550, 0.085, 0.680, 0.530); }