Skip to content

Instantly share code, notes, and snippets.

Avatar

Joel Dayjo

View GitHub Profile
@Dayjo
Dayjo / install-poppler-ubuntu.md
Last active Jun 29, 2022
How to install Poppler on Ubuntu
View install-poppler-ubuntu.md

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

wget https://poppler.freedesktop.org/poppler-data-0.4.7.tar.gz
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
Dayjo / om-status-flow.md
Last active Jan 8, 2020
Order Status change
View om-status-flow.md

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
Dayjo / OrderStatusChange.md
Last active Nov 19, 2019
Spec for new order status change work
View OrderStatusChange.md

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
Dayjo / spec.md
Last active Oct 31, 2019
Tracking Unsplash on Create
View spec.md

Unsplash Tracking for Create

  • Add metadata column to images table
ALTER TABLE images
ADD metadata json default null,
ALGORITHM=INPLACE,
LOCK=NONE;
@Dayjo
Dayjo / gist-editor-resize-userscript.js
Last active May 16, 2018
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 https://gist.github.com/
// @version 0.1
// @description Automatically resize the gist editor for easier editing.
// @match http*://gist.github.com/*
// @copyright 2013+ Joel Day - blog.dayjo.org
// ==/UserScript==
var textareas = document.querySelectorAll('textarea.file_contents');
@Dayjo
Dayjo / projects.md
Last active Mar 11, 2018
3d Printing Projects
View projects.md
  • Modular Milk Bottle Holder
  • Arduino case
  • Microbit case
  • Desk / tool organisers
  • Toothbrush / head holder for bathroom
View markdown.md
  1. item 4
  2. item one
  3. item three
  4. item two
@Dayjo
Dayjo / I got found lyrics.txt
Last active Apr 21, 2017
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