Skip to content

Instantly share code, notes, and snippets.

View p3palazzo's full-sized avatar
🏠
Working from home

Pedro P. Palazzo p3palazzo

🏠
Working from home
View GitHub Profile
@p3palazzo
p3palazzo / wikimedia-smartcode-maps.gpl
Last active March 26, 2024 03:35
Color palette for GIMP and Inkscape with colors from the Wikimedia map templates and the New Urbanism SmartCode Lexicon + Steve Mouzon's improvements.
GIMP Palette
Name: Wikimedia Maps
#
0 0 0 Black
255 255 255 White
# Territory
100 100 100 Gray Boundary · Name
254 254 233 Land Main
246 225 185 Land Secondary
@p3palazzo
p3palazzo / Dockerfile
Created July 8, 2023 01:53
Jekyll+Pandoc Dockerfile
ARG pandoc_version=3.1.1
ARG jekyll_version=4.2.2
FROM pandoc/core:${pandoc_version} AS pandoc-base
RUN apk update \
&& apk --no-cache add \
cabal \
ghc-dev \
libffi-dev \
@p3palazzo
p3palazzo / README.md
Last active June 21, 2023 15:00
Minimal-Mistakes Academic

Minimal-Mistakes Academic

A collection of includes for the [Minimal-Mistakes Jekyll theme][] that provides additional resources for academic websites:

  • author-gallery.html: Can be used to generate a roster of people on the main content area of the page, replicating the format of the author-profile sidebar item;
  • author-profile.html: Replaces the built-in author-profile sidebar,
@p3palazzo
p3palazzo / debug.txt
Created November 1, 2021 16:14
Blender-Sverchok-Topologic-debug-log
sv: PyMCubes package is not available. PyMCubes-based implementation of Marching Cubes will not be available
sv: FreeCAD package is not available, Solids nodes will not be available
sv: Dependencies available: pip, scipy, geomdl, scikit-image, circlify, Cython, Numba.
2021-11-01 16:09:36,838 [INFO] logging: log level, 20
2021-11-01 16:09:37,268 [INFO] sverchok_extra.dependencies 33: Pygalmesh package is not available. Corresponding nodes will not be available
Traceback (most recent call last):
File "/Applications/Blender.app/Contents/Resources/2.93/scripts/modules/addon_utils.py", line 351, in enable
mod = __import__(module_name)
File "/Users/palazzo/Library/Application Support/Blender/2.93/scripts/addons/sverchok-extra-master/__init__.py", line 124, in <module>
imported_modules = [icons] + make_node_list()
@p3palazzo
p3palazzo / jekyll-workflow.yaml
Created June 18, 2021 19:25
GitHub workflow to build a Jekyll website on the gh-pages branch
# Builds a Jekyll website on the gh-pages branch
# Using a Makefile.
# Place in <repo>/.github/workflows/
# The gh-pages branch must exist before
# this workflow is run.
name: Jekyll
on:
pull_request:
push:
branches: [ main ]
@p3palazzo
p3palazzo / _jekyll-pandoc-reveal-tufte.txt
Last active November 23, 2022 17:22
Specs for a course or research project website with Jekyll, Pandoc, Reveal.js, and Tufte-Pandoc
Specs for a course website with Jekyll, Jekyll Scholar, Pandoc, Reveal.js, and
Tufte-Pandoc
Some assumptions:
- Bibliography is at `_bibliography/references.bib` (Jekyll Scholar default)
- Pandoc templates and reference files at `_lib`
- Language-dependent `_metadata.yaml` and `_crossref.yaml` at repo root
- Reveal.js slides `file.md` are exported as `file/index.html` and the
reveal.js submodule is in the same directory as `file/`, wherever that is.
@p3palazzo
p3palazzo / revealjs.scss
Last active July 27, 2021 11:15
SCSS to customize Reveal.js with Pandoc, Mermaid-filter, and Pandoc-crossref
---
---
/*
* This SASS file customizes the appearance of a Reveal.js slideshow generated
* from Pandoc and hosted via Jekyll. It requires a _settings.scss file
* declaring custom variables and font-faces. It assumes
* reveal.js is loaded as a submodule at the root of the repo. The triple
* dashes at the top are there for compatibility with Jekyll.
*/
@p3palazzo
p3palazzo / __pandoc-tufte-revealjs.txt
Last active July 22, 2021 14:41
Stylesheet for Pandoc and Jekyll, compatible with Pandoc-Tufte and Reveal.js
# Stylesheet for Pandoc and Jekyll, compatible with Pandoc-Tufte and Reveal.js
The `_setting.scss` file uses variables defined in reveal.js.
The `_custom.scss` file extends and improves the Pandoc-Tufte theme for Jekyll.
Best practice as per Jekyll docs: add as submodule `_sass` and `@import` in `assets/css/main.scss`.