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
/* | |
Live.js - One script closer to Designing in the Browser | |
Written for Handcraft.com by Martin Kool (@mrtnkl). | |
Updated by Ross Wintle (https://rw.omg.lol) to: | |
- Use EventSource for server-sent events | |
- Use async/await | |
- Use fetch instead of XMLHttpRequest for requests | |
- Be a JS class | |
- Use a hash of the HTML to check for content changes |
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
#!/bin/bash | |
## | |
## This script watches for changes in the specified directories and runs the build | |
## script when changes are detected. | |
## | |
## It writes a .modified_time file to the root of the project. This contains the | |
## timestamp of the last modification time. | |
## | |
## This is intended to be used with a front-end script that polls for changes |
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
/* | |
Live.js - One script closer to Designing in the Browser | |
Written for Handcraft.com by Martin Kool (@mrtnkl). | |
Updated by Ross Wintle (https://rw.omg.lol) to: | |
- Use async/await | |
- Use fetch instead of XMLHttpRequest | |
- Be a JS class | |
- Use a separate, project-global modified-time file to check for changes |
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 | |
/* | |
* Input: files matching src/pages/*.html | |
* Output: public/*.html | |
* | |
* Pages can extend a template by calling: | |
* | |
* extend(string $relativeTemplatePath, array $variables) | |
* | |
* at the start and: |
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
{ | |
"name": "your_organisation_or_name/your_project_name", | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "https://wpackagist.org", | |
"only": [ | |
"wpackagist-plugin/*", | |
"wpackagist-theme/*" | |
] |
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 | |
/** | |
* Plugin Name: Spam Pixel | |
* Description: This simple plugin integrates Ross's spam pixel idea with WP Forms | |
* Author: Ross Wintle | |
* Author URI: https://rosswintle.uk | |
* Text Domain: spam-pixel | |
* Domain Path: /languages | |
* Version: 0.1.0 | |
* |
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 | |
// This is the Stats class I wanted to create. It lives in app/Stats.php, but could be anywhere that the AutoLoader will recognise it | |
namespace App; | |
use App\Action; | |
use Carbon\Carbon; | |
/** |
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
// ==UserScript== | |
// @name WordPress Full Screen Editor killer | |
// @namespace http://rosswintle.uk/ | |
// @version 0.1 | |
// @description Auto-removes the full screen editor on WordPress sites | |
// @author Ross Wintle | |
// @match https://*/* | |
// @match http://*/* | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Feedbin: Keep selected centered | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Keeps the selected item vertically centered in Feedbin | |
// @author Ross Wintle | |
// @match https://feedbin.com/ | |
// @icon https://www.google.com/s2/favicons?domain=feedbin.com | |
// @grant none | |
// ==/UserScript== |
NewerOlder