Skip to content

Instantly share code, notes, and snippets.

View tobystokes's full-sized avatar

Toby Stokes tobystokes

View GitHub Profile
@tobystokes
tobystokes / tnew.js
Last active April 18, 2018 12:31
Modify max/min versions of select values
$(function() {
// Make sure jquery is loaded.
// the title of the selectlist = the Tessitura price type.
$('select[title=44] option').filter(function() {
return $(this).val() < 10;
}).remove();
$('select[title=44] option').filter(function() {
{"traces": [
{
"y": ["accuracy", "f1", "precision", "recall"],
"x": [
0.8717948717948718,
0.7141389934953782,
0.770879526977088,
0.6651785714285714
],
"name": "real",
{
"sections": [
{
"name": "similarity",
"description": "",
"scores": [
{ "type": "score", "name": "Marginal distribution" },
{ "type": "score", "name": "Bi-joint distribution" },
{ "type": "score", "name": "Mutual Information"}
],
@tobystokes
tobystokes / cookies.css
Created March 10, 2021 15:02
CSS overrides for SMG CookiePro
/* add link:
document.head.insertAdjacentHTML('beforeend','<link rel="stylesheet" id="onetrust-custom" href="https://group.smg.localhost/wp-content/themes/smgwptheme/css/cookies.css" type="text/css">');
*/
#onetrust-pc-sdk .ot-pc-footer-logo {
display: none;
}
#onetrust-banner-sdk #onetrust-policy-text,
#onetrust-banner-sdk .ot-b-addl-desc,
@tobystokes
tobystokes / .eleventy.js
Last active April 3, 2022 23:47
eleventy-img caching
const imageShortcode = require("./image");
module.exports = function(eleventyConfig) {
eleventyConfig.addNunjucksShortcode("image", imageShortcode);
// ... + other eleventyConfig
};

Keybase proof

I hereby claim:

  • I am tobystokes on github.
  • I am tobystokes (https://keybase.io/tobystokes) on keybase.
  • I have a public key ASAkfwJP7XGe2sTmuD-2Qe6E_b2D7qDfYkYgWSQQDhUZkQo

To claim this, I am signing this object: