Skip to content

Instantly share code, notes, and snippets.

View Dayjo's full-sized avatar

Joel Dayjo

View GitHub Profile
Dayjo /
Last active August 18, 2023 12:38
How to install Poppler on Ubuntu

First install all these prerequisites for compiling:

sudo apt install g++ autoconf libfontconfig1-dev pkg-config libjpeg-dev libopenjpeg-dev gnome-common libglib2.0-dev gtk-doc-tools libyelp-dev yelp-tools gobject-introspection libsecret-1-dev libnautilus-extension-dev

First download the encoding files (no need to compile these) to the current working directory

View Media-Queries.css
/* When the console width is 624px or less */
@media all and (max-width: 624px) and (min-width: 0px) {
/* Hide the audits tab */
#-webkit-web-inspector #toolbar .toolbar-item.audits {
display: none !important;
Dayjo /
Last active January 8, 2020 17:03
Order Status change

If bulk selecting, you should always see some sort of confirm dialog. On single orders you may not (depending on your email/config settings).

  • If shop config set to 'confirm before sending', confirm the change in a dialog with a 'send email' checkbox and email text box for editing the email content

  • If changing an individual order status and config set to 'send automatically' or 'never send emails', don't show confirm dialog.

  • If bulk selection and 'send automatically', show confirm dialog with 'send email' checkbox automatically checked

  • If bulk selection and 'never send', show confirmation but don't ask about emails

Dayjo /
Last active November 19, 2019 12:19
Spec for new order status change work

Order Status Change User Flow

Options for consideration

Send Dispatch Emails: [Y / N / Confirm] Send Processing Emails: [Y / N / Confirm] Send Refund Emails: [Y / N / Confirm]

  • User selects one or more order
  • User selects as status to change to. This could be in the Data Table with multiple orders or just fired by the OrderStatus component on an individual order in the panel or in the table)
Dayjo /
Last active October 31, 2019 14:40
Tracking Unsplash on Create

Unsplash Tracking for Create

  • Add metadata column to images table
ADD metadata json default null,
Dayjo / gist-editor-resize-userscript.js
Last active May 16, 2018 19:09
Make Gist editor automatically resize based on content using a TamperMonkey script
View gist-editor-resize-userscript.js
// ==UserScript==
// @name gist-editor-resize-userscript
// @namespace
// @version 0.1
// @description Automatically resize the gist editor for easier editing.
// @match http*://*
// @copyright 2013+ Joel Day -
// ==/UserScript==
var textareas = document.querySelectorAll('textarea.file_contents');
Dayjo /
Last active March 11, 2018 23:20
3d Printing Projects
  • Modular Milk Bottle Holder
  • Arduino case
  • Microbit case
  • Desk / tool organisers
  • Toothbrush / head holder for bathroom
  1. item 4
  2. item one
  3. item three
  4. item two
Dayjo / I got found lyrics.txt
Last active April 21, 2017 18:09
Trying to hear what the lyrics are
View I got found lyrics.txt
mmmmmm mmmmmm mmmmmm mmm
Well I know that I've been changed
( been a thousand miles)
through the drizzlin rain
( gets hard to smile )
take me back again
little black train's rolling round the bend x2