Skip to content

Instantly share code, notes, and snippets.

View eyssette's full-sized avatar
🧗‍♂️

Eyssette eyssette

🧗‍♂️
View GitHub Profile
/*
Narrow non-breaking space before ? ! ; :
espaces fines insécables avant ? ! ; :
*/
import markdownIt from 'markdown-it'
@jdvp
jdvp / comment-section.html
Last active September 26, 2021 07:53
OUTDATED : See the file here instead: https://github.com/jdvp/jekyll-comments-google-forms Code required for adding a Google Forms-based commenting system to Jekyll blogs. Necessary for the https://jdvp.me/articles/Google-Forms-Jekyll-Comments article.
{% if site.comment-read %}
<!-- Load Required 3rd-Party Scripts. We use the following:
* jquery for DOM manipulation
* jquery-csv for parsing Google Sheets CSV data to JSON
* validator for escaping user-entered comments to prevent malicious code input in comments
Make sure to update these to the latest versions every once in a while.
-->
<script
src="https://code.jquery.com/jquery-3.6.0.min.js"
@tarleb
tarleb / include.lua
Last active May 1, 2023 14:12
Filter to include Markdown files via code blocks
--- Pandoc Lua filter to include other Markdown files
---
--- Usage: Use a special code block with class `include` to
--- include Markdown files. Each code line is treated as the
--- filename of a Markdown file, parsed as Markdown, and
--- included. Metadata from include files is discarded.
---
--- Example:
---
--- ``` {.include}
@orangecms
orangecms / xlsx2json.sh
Created July 15, 2017 08:03
Convert xlsx spreadsheets to JSON :)
#!/bin/bash
# Preconditions:
# Before using this script, you need to have additional tools. Preferably, use
# your system package manager to install `csv2json`, `jsonlint` and `xslx2csv`.
# Alternatively, if you have `node`, `npm`, `python` and `pip`, run
# `npm i -g csv2json jsonlint && pip install xlsx2csv` for the unclean way.
# WARNING: You may have to adjust your `$PATH` then and you will need to track
# updates yourself. Do this at your own risk only.
<div class="entries">
<div class="entry">
<div class="title">2011</div>
<div class="body">
<p>Neque sunt voluptatibus repellat pariatur ut enim. Eveniet rerum suscipit eveniet amet dignissimos. Doloremque et distinctio quod molestiae ut.</p>
</div>
</div>
<div class="entry">
<div class="title">2012</div>
<div class="body">
@caseywatts
caseywatts / bookmarkleting.md
Last active September 24, 2024 08:34
Making Bookmarklets

This is one chapter of my "Chrome Extension Workshops" tutorial, see the rest here: https://gist.github.com/caseywatts/8eec8ff974dee9f3b247

Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book

Making Bookmarklets

I'm feeling very clever. I've got this sweet line of javascript that replaces "cloud" with "butt". My mom would LOVE this, but she doesn't computer very well. I'm afraid to show her the Developer Console and have her type/paste this in. But she IS pretty good at bookmarks, she knows just how to click those!

A bookmark normally takes you to a new web page. A bookmarklet is a bookmark that runs javascript on the current page instead of taking you to a new page. To declare that it is a bookmarklet, the "location" it points to starts with javascript:.

@killercup
killercup / pandoc.css
Created July 3, 2013 11:31
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}