Skip to content

Instantly share code, notes, and snippets.

View dgmstuart's full-sized avatar

Duncan Stuart dgmstuart

View GitHub Profile
@dgmstuart
dgmstuart / dxw-security.php
Last active August 29, 2015 14:10
A class for detecting when the plugin has updated (WordPress)
<?php
// ...
register_activation_hook( __FILE__, array( "dxw_security_Update_Checker", 'record_version' ));
if (dxw_security_Update_Checker::updated() ) {
dxw_security_Cron::schedule_tasks();
dxw_security_Update_Checker::record_version();
}
require 'minitest/autorun'
begin
require_relative 'bob'
rescue LoadError => e
eval("\"#{DATA.read}\n\"").split("\n.\n").each_with_index do |s,i|
if i > 0
puts "\t--- press enter to continue ---"
gets
end
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by yaml configure 0.1.4, which was
generated by GNU Autoconf 2.67. Invocation command line was
$ ./configure --prefix=/Users/duncanstuart/.rvm/usr CC=/usr/bin/gcc-4.2 --no-create --no-recursion
## --------- ##
## Platform. ##