Skip to content

Instantly share code, notes, and snippets.

@julientaq
julientaq / something html
Created May 31, 2024 20:36
pagedjs mermaid and fix
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<meta charset="utf-8" />
<title>Example Doc Issue #206</title>
<script src="https://unpkg.com/pagedjs@0.5.0-beta.1/dist/paged.polyfill.js"></script>
@julientaq
julientaq / eleventy.config.js
Last active September 28, 2023 14:29
eleventy configuration for lighntning css. to try and fix https://github.com/5t3ph/eleventy-plugin-lightningcss/issues/4
const fs = require("node:fs");
const path = require("node:path");
const browserslist = require("browserslist");
const {
bundle,
browserslistToTargets,
composeVisitors,
} = require("lightningcss");
// Set default transpiling targets
@julientaq
julientaq / zynthian log
Created September 25, 2021 09:13
Zynthian error
-- Logs begin at Thu 2019-02-14 10:11:58 GMT. --
Sep 25 09:51:12 zynthian startx[568]: WARNING:zynthian_engine.proc_get_output: Command Prompt is not defined!
Sep 25 09:51:31 zynthian startx[568]: ERROR:zynthian_engine_linuxsampler.ls_unset_channel: There is no engine deployed on this sampler channel yet
Sep 25 09:51:31 zynthian startx[568]: (ERR 0)
Sep 25 09:51:31 zynthian startx[568]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
Sep 25 09:51:32 zynthian startx[568]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
Sep 25 09:51:32 zynthian startx[568]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
Sep 25 09:51:32 zynthian startx[568]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
Sep 25 09:51:32 zynthian startx[568]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
Sep 25 09:51:33 zynthian startx[568]: WARNING:zynthian_autoconnect.cb_jack_xrun: Jack Audio XRUN!
-- Logs begin at Thu 2019-02-14 10:11:58 GMT. --
Sep 25 00:24:49 zynthian startx[495]: (==) Log file: "/var/log/Xorg.0.log", Time: Sat Sep 25 00:24:49 2021
Sep 25 00:24:49 zynthian startx[495]: (==) Using config directory: "/etc/X11/xorg.conf.d"
Sep 25 00:24:49 zynthian startx[495]: (==) Using system config directory "/usr/share/X11/xorg.conf.d"
Sep 25 00:24:51 zynthian startx[495]: /zynthian/config/img/fb_zynthian_boot.png is 480x320 PNG image, color type PALETTE, 8 bit
Sep 25 00:24:51 zynthian startx[495]: Zooming image by 100%...done
Sep 25 00:24:51 zynthian startx[495]: Merging...didn't find evidence of prior run.
Sep 25 00:24:51 zynthian startx[495]: done
Sep 25 00:24:51 zynthian startx[495]: Building XImage...done
Sep 25 00:24:54 zynthian startx[495]: libjackpeak registering as 'jackpeak'.
@julientaq
julientaq / layout_searchindex.njk
Last active July 1, 2021 23:16
creating an index with json
{{ collections.allSearch | searchSingle(folder) | dump | safe }}
@julientaq
julientaq / dabblet.css
Last active January 21, 2021 17:42
Custom emoji markers with 1 custom property
/**
* Custom emoji markers with 1 custom property
*/
ul {
color: red;
}
li {
color:orange;
}
async function acceptOne(id, el) {
axios
.put(`${server}/participants/${id}`, JSON.stringify('"accept": true'), {
headers: {
Authorization: `Bearer ${token}`,
},
})
@julientaq
julientaq / gist:5cf14efea3dc96f7cfc4191642cf71cf
Created January 2, 2020 15:04
add one blank page if the total number of pages is odd in paged.js
<script>
class pairPage extends Paged.Handler {
constructor(chunker, polisher, caller) {
super(chunker, polisher, caller);
}
afterRendered(pages) {
if (pages.length % 2 === 1) {
const pageNew = document.createElement("div");
@julientaq
julientaq / baseline.css
Created July 8, 2019 20:56
paged.js Baseline
:root {
--baseline: var(--font-lineHeight);
--baseline-color: red;
}
.pagedjs_page {
/* grid baseline */
// ______________________________________________________________________ //
// font-face mixin override //
// ______________________________________________________________________ //
@mixin font-face(
$name,
$font-files,
$eot: false,
$weight: false,
$style: false,
$unicode-range: false,