Skip to content

Instantly share code, notes, and snippets.

View surdaft's full-sized avatar
🤓

SurDaft - Jack Stupple surdaft

🤓
View GitHub Profile
<?php
/**
* Hide recaptcha column after contact-form-submissions has determined the columns for that form.
*/
add_action('manage_wpcf7s_posts_columns', function($columns) {
if (in_array('g-recaptcha-response', $columns)) {
unset($columns[array_search('g-recaptcha-response', $columns)]);
}
@surdaft
surdaft / script.js
Created April 22, 2018 12:47
For Above Infinity ECO event
(function() {
let newElement = document.createElement('div');
newElement.innerHTML = `<div><div class="bar-container">
<div class="progress-bar-outer">
<div class="progress-bar-inner">
<span class="progress" id="output" data-goal="0">£0 / £500 (0.00%)</span>
</div>
</div>
</div>
@surdaft
surdaft / serverCodes.md
Created April 18, 2019 09:39 — forked from sgnl/serverCodes.md
status codes

1xx: Information

Code Message Description
100 Continue The server has received the request headers, and the client should proceed to send the request body
101 Switching Protocols The requester has asked the server to switch protocols
103 Checkpoint Used in the resumable requests proposal to resume aborted PUT or POST requests

2xx: Successful

Code Message Description
@surdaft
surdaft / links.txt
Last active November 23, 2020 11:38
Common Twitch Spam URLs

Golang Templates Cheatsheet

Posted 14 Sep 2017

(saved from curtisvermeeren.github.io)

The Go standard library provides a set of packages to generate output. The text/template package implements templates for generating text output, while the html/template package implements templates for generating HTML output that is safe against certain attacks. Both packages use the same interface but the following examples of the core features are directed towards HTML applications.