Skip to content

Instantly share code, notes, and snippets.

View paulgibbs's full-sized avatar

Paul Wong-Gibbs paulgibbs

View GitHub Profile
# Background
The adventure is "Storm King's Thunder", a new adventure for characters level 1-11+.
Players of all experience levels are welcome. The group size will be >= 4 players.
As a Player, you don't *need* to buy anything. However, a good set of dice will always help! [0]
# Required info
We will be using audio to communicate (webcams optional but recommended) over something like Skype or Discord.
We will play on https://roll20.net/, which is a virtual table top. In-person play will still be possible, though laptops will have to be shared (etc).
Not running ajax tests. To execute these, use --group ajax.
Not running ms-files tests. To execute these, use --group ms-files.
Not running external-http tests. To execute these, use --group external-http.
PHPUnit 4.1.3 by Sebastian Bergmann.
Configuration read from /srv/www/buddypress.dev/src/wp-content/plugins/buddypress/phpunit.xml.dist
............................................................. 61 / 1391 ( 4%)
.....................................F....................... 122 / 1391 ( 8%)
...................................F......................... 183 / 1391 ( 13%)
array(23) {
'bp-deactivated-components' =>
array(0) {
}
'bb-config-location' =>
string(41) "/srv/www/buddypress.dev/src/bb-config.php"
'bp-xprofile-base-group-name' =>
string(4) "Base"
'bp-xprofile-fullname-field-name' =>
string(4) "Name"
@paulgibbs
paulgibbs / sortable-js-example.js
Created September 8, 2016 12:48
For https://github.com/HubSpot/sortable I didn't end up using this but wanted to save it for future reference.
(function(){
'use strict';
function addDataTypes() {
window.Sortable.setupTypes(
window.Sortable.types.concat(
[{
name: 'currency',
defaultSortDirection: 'descending',
match: function(a) {
curl 'https://sandbox-healthservice.priaid.ch/symptoms?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJlbWFpbCI6Im04ci11dzJlOWtAbWFpbGluYXRvci5jb20iLCJyb2xlIjoiVXNlciIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL3NpZCI6IjY1OCIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvdmVyc2lvbiI6IjIwMCIsImh0dHA6Ly9leGFtcGxlLm9yZy9jbGFpbXMvbGltaXQiOiI5OTk5OTk5OTkiLCJodHRwOi8vZXhhbXBsZS5vcmcvY2xhaW1zL21lbWJlcnNoaXAiOiJQcmVtaXVtIiwiaHR0cDovL2V4YW1wbGUub3JnL2NsYWltcy9sYW5ndWFnZSI6ImVuLWdiIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9leHBpcmF0aW9uIjoiMjA5OS0xMi0zMSIsImh0dHA6Ly9leGFtcGxlLm9yZy9jbGFpbXMvbWVtYmVyc2hpcHN0YXJ0IjoiMjAxNi0wOC0zMCIsImlzcyI6Imh0dHBzOi8vc2FuZGJveC1hdXRoc2VydmljZS5wcmlhaWQuY2giLCJhdWQiOiJodHRwczovL2hlYWx0aHNlcnZpY2UucHJpYWlkLmNoIiwiZXhwIjoxNDcyNTcyNDcyLCJuYmYiOjE0NzI1NjUyNzJ9.sfCy1qSOMLmEwcIukadsSoRjYojjr_ZOd-7hFkPeJ4Y&language=en-gb&format=json' -H 'Pragma: no-cache' -H 'Origin: http://apimedic.net' -H 'Accept: ap
<?php
// put this in a function otherwise i will get upset.
$data = xprofile_get_field_data( 'Location', bp_displayed_user_id(), 'comma' );
if ( $data ) {
echo "Lives in {$data}";
}
@paulgibbs
paulgibbs / -
Created August 9, 2016 14:20
Hack wp unit tests to kind-of work with the 'sqlite-integration' plugin
Index: testcase.php
===================================================================
--- testcase.php (revision 37854)
+++ testcase.php (working copy)
@@ -138,7 +138,10 @@
*/
function tearDown() {
global $wpdb, $wp_query, $wp, $post;
- $wpdb->query( 'ROLLBACK' );
+
diff --git a/src/bp-groups/admin/css/admin-rtl.css b/src/bp-groups/admin/css/admin-rtl.css
index 22e5279..0997c32 100644
--- a/src/bp-groups/admin/css/admin-rtl.css
+++ b/src/bp-groups/admin/css/admin-rtl.css
@@ -37,9 +37,9 @@ body.toplevel_page_bp-groups table.groups th#last_active {
font-weight: bold;
}
.bp-groups-settings-section label {
- clear: left;
+ clear: right;
diff --git a/.travis.yml b/.travis.yml
index b1dc9d5..4e1dc2a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -35,6 +35,8 @@ matrix:
env: WP_VERSION=master BP_TRAVISCI=travis:phpunit
- php: 7.0
env: WP_VERSION=master BP_TRAVISCI=travis:grunt
+ - php: 7.0
+ env: WP_VERSION=master BP_TRAVISCI=travis:codecoverage
<?xml version="1.0"?>
<ruleset name="WordPress Coding Standards for Plugins">
<description>Generally-applicable sniffs for WordPress plugins</description>
<rule ref="WordPress-VIP">
<exclude name="WordPress.VIP.FileSystemWritesDisallow" />
<exclude name="WordPress.VIP.RestrictedFunctions" />
<exclude name="WordPress.VIP.RestrictedVariables" />
<exclude name="WordPress.VIP.SuperGlobalInputUsage" />
<exclude name="WordPress.VIP.ValidatedSanitizedInput" />