Skip to content

Instantly share code, notes, and snippets.

View phillipsharring's full-sized avatar
🏫
Improving EdTech 🧑🏼‍🎓

Phil Harrington phillipsharring

🏫
Improving EdTech 🧑🏼‍🎓
View GitHub Profile
@phillipsharring
phillipsharring / RouteServiceProvider.php
Last active February 13, 2018 12:37
Database Driven Routes in Laravel 5.1
<?php
// ...
/**
* Define the routes for the application.
*
* @param \Illuminate\Routing\Router $router
* @return void
*/
@remy
remy / Makefile
Last active March 15, 2022 00:57
The Makefile I'm using to compile .less file changes *when* the changes occur. Full write up: https://remysharp.com/makefile
# when you run `make` alone, run the `css` rule (at the
# bottom of this makefile)
all: css
# .PHONY is a special command, that allows you not to
# require physical files as the target (allowing us to
# use the `all` rule as the default target).
.PHONY: all
# replace all .less files with .css extension and cache
@fortserious
fortserious / satire.js
Last active December 14, 2016 16:50
remove [satire] tag on facebook
// ==UserScript==
// @name comedy is not dead
// @namespace rossdoran.com
// @version 0.1
// @description comedy is not dead
// @author ross doran
// @match https://www.facebook.com/*
// @require http://code.jquery.com/jquery-latest.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// ==/UserScript==
@phillipsharring
phillipsharring / email-valid.php
Last active August 29, 2015 14:05
Email Validation Function
<?php
/**
* emailValid
* Email Validation Function
* I take an email as a string and test it against 2 regular expressions.
*
* @author Regexp Author unknown
* @author Phillip Harrington <philsown@gmail.com>
* @param string $email
* @return bool $valid
@Rarst
Rarst / deprecated.md
Last active February 21, 2023 11:21
WordPress coding standards configuration for PhpStorm

Now Native

PhpStorm now bundles WordPress coding style natively, starting from version 8.

  1. Go to Project Settings > Code Style > PHP.
  2. Select Set From... (top right of window) > Predefined Style > WordPress.

No longer need to muck with this import! :)