Skip to content

Instantly share code, notes, and snippets.

View Naereen's full-sized avatar
📝
Coder in long holidays - full time teacher

Lilian Besson Naereen

📝
Coder in long holidays - full time teacher
View GitHub Profile
@Naereen
Naereen / minted.py
Created April 1, 2023 10:49 — forked from jepio/minted.py
Pandoc filter to use minted for syntax highlighting
#!/usr/bin/env python3
'''
Filter to wrap Pandoc's CodeBlocks into minted blocks when using latex.
Pandoc's `fence_code_attributes` can be used to provide:
- the language (first class)
- minted's argumentless options (following classes)
- minted's options with arguments (attributes)
'''

Keybase proof

I hereby claim:

  • I am naereen on github.
  • I am naereen (https://keybase.io/naereen) on keybase.
  • I have a public key ASB0qooyut1iVIMM35DaR2wUiYQ-q4jMDNUPL_LGM_0DTwo

To claim this, I am signing this object:

@Naereen
Naereen / corner-ribbon.css
Created March 29, 2018 10:43
Ruban pour promouvoir un livre
@import url('//fonts.googleapis.com/css?family=Tangerine');
/* The ribbons */
.corner-ribbon {
font-family: "Tangerine",sans-serif;
width: 400px;
background: #e43;
position: absolute;
top: 50px;
left: -100px;
@Naereen
Naereen / fireworks.js
Created July 15, 2017 12:06
Add fireworks effects (from anime.js) to a reveal.js slideshow
// Source https://codepen.io/juliangarnier/pen/gmOwJX
// (C) Julian Garnier
// Adapted by Lilian Besson (Naereen) https://github.com/Naereen
// to add a fireworks effect on a reveal.js slideshows
var canvasEl = document.querySelector('.fireworks');
var ctx = canvasEl.getContext('2d');
var numberOfParticules = 40;
var pointerX = 0;
var pointerY = 0;
@Naereen
Naereen / Kaamelott-Soundboard.desktop
Created July 2, 2017 09:55
XDG Desktop file for a locally installed desktop app version of the website http://kaamelott-soundboard.2ec0b4.fr/
#!/usr/bin/env xdg-open
[Desktop Entry]
Name=Kaamelott Soundbard
Comment=Kaamelott Soundbard desktop app
Exec=/home/lilian/.local/kaamelott-soundboard-linux-x64/kaamelott-soundboard
Icon=/home/lilian/.local/share/applications/kaamelott-soundboard.jpg
Terminal=false
Type=Application
InitialPreference=6
@Naereen
Naereen / zelda_roth_se.desktop
Created June 12, 2017 17:01
XDG Desktop files for two Solarus games (see http://www.solarus-games.org/games/)
[Desktop Entry]
Version=1.0
Type=Application
Name=Zelda: Return of the Hylian SE
Comment=http://www.solarus-games.org/games/zelda-return-of-the-hylian-se/
TryExec=zelda_roth_se
Exec=zelda_roth_se
Icon=/usr/share/solarus/zelda_roth_se/zelda_roth_se.png
@Naereen
Naereen / nginx.conf
Created March 6, 2017 11:40
Configuration for NGinx to proxy uLogMe web-app (https://localhost:8443) to a folder (https://localhost/ulogme). Cf. https://GitHub.com/Naereen/uLogMe/
# Inside the SSL server:
# Local proxy for uLogMe (https://localhost:8443/)
location /ulogme/ {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_buffering off;
proxy_cache off;
proxy_ssl_verify off;
proxy_pass https://localhost:8443/;
@Naereen
Naereen / Zotero.desktop
Created February 7, 2017 14:47
Zotero.desktop file to add the standalone Zotero application to your system launcher, cf. https://www.zotero.org/
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=Zotero
GenericName=Zotero Bibliography Manager
Icon=/home/lilian/.local/Zotero_linux-x86_64/chrome/icons/default/default48.png
Exec=/home/lilian/.local/Zotero_linux-x86_64/zotero %f
Categories=Office
Terminal=false
@Naereen
Naereen / Marp.desktop
Created February 7, 2017 14:43
Marp.desktop file to add a system shortcut for Marp (https://yhatt.github.io/marp/)
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=Marp
GenericName=Marp - Markdown Presentation Editor
Icon=/home/lilian/.local/Marp/marp.png
Exec=/home/lilian/.local/Marp/Marp %f
Categories=Office
Terminal=false
@Naereen
Naereen / bh_core.sublime-settings
Last active February 6, 2016 00:28
Custom brackets for LaTeX+ for the BracketHighlighter Sublime Text 3 plugin
{
// Custom brackets for LaTeX+ for the BracketHighlighter Sublime Text 3 plugin
// Needs the LaTeX+ plugin from https://github.com/randy3k/Latex-Plus/
// And the BracketHighlighter plugin from https://github.com/facelessuser/BracketHighlighter
// Based on this page https://github.com/randy3k/Latex-Plus/wiki/BracketHighlighter-settings
//
// HowTo use: save this to Packages/User/bh_core.sublime-settings
// (or Menu > Preferences > Package Settings > BracketHighlighter > Brackets Settings - User)
//
// FIXME reorder the objects in a more logical fashion