Skip to content

Instantly share code, notes, and snippets.

View hugoroy's full-sized avatar

Hugo Roy hugoroy

View GitHub Profile
@hugoroy
hugoroy / .emacs
Last active April 23, 2017 13:57
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
@hugoroy
hugoroy / gist:248f8aa411835cb55e5b
Created December 12, 2014 22:51
markdown-french-to-xelatex
#!/bin/bash
sed "s/« /«/g" | sed "s/ »/»/g" | sed "s/ !/!/g" | sed "s/ ?/?/g" | sed "s/ ;/;/g" | sed "s/ :/:/g" | sed "s/1er/1\\\textsuperscript{er}/g" | sed "s/Mme /M\\\textsuperscript{me} /g"
@hugoroy
hugoroy / default.ikiwiki.markdown
Created October 30, 2014 17:56
Pandoc template for ikiwiki

$if(title)$ [[!meta title="$title$"]] $endif$ $if(author-meta)$ [[!meta author="$author-meta$"]] $endif$ $if(date)$ [[!meta date="$date$"]] $endif$ $if(abstract)$

Keybase proof

I hereby claim:

  • I am hugoroy on github.
  • I am hugoroy (https://keybase.io/hugoroy) on keybase.
  • I have a public key whose fingerprint is EBE6 F998 953C BD94 FFA4 E671 8D02 2C99 B3D7 B795

To claim this, I am signing this object:

This is a test!

@hugoroy
hugoroy / gist:91eb200d8db94102d04e
Last active August 29, 2015 14:01
Typographies françaises vers TeX
 #!/bin/bash
 sed "s/« /«/g" | sed "s/ »/»/g" | sed "s/ !/!/g" | sed "s/ ?/?/g" | sed "s/ ;/;/g" | sed "s/ :/:/g"  

Utilisation

./script.sh < INPUT | pandoc -o OUTPUT --variable lang=french --latex-engine=xelatex

@hugoroy
hugoroy / touchegg.conf.xml
Last active August 29, 2015 13:58
~/.config/touchegg/touchegg.conf
<touchégg>
<settings>
<property name="composed_gestures_time">0</property>
</settings>
<application name="All">
<gesture type="DRAG" fingers="3" direction="RIGHT">
<action type="SEND_KEYS">Super+Right</action>
</gesture>
<gesture type="DRAG" fingers="5" direction="DOWN">
<action type="SEND_KEYS">Control+minus</action>
# -*- coding: utf-8 -*-
PLUGIN_NAME = u'MetaFlac ReplayGain'
PLUGIN_AUTHOR = u'Olivier Kaloudoff (based on Johannes Weißl)'
PLUGIN_DESCRIPTION = '''Analyse your albums using the MetaFlac ReplayGain scanner.'''
PLUGIN_VERSION = "0.2"
PLUGIN_API_VERSIONS = ["0.10", "0.15"]
import os
import sys
[Desktop Entry]
X-AppInstall-Package=mutt
X-AppInstall-Popcon=1977
X-AppInstall-Section=main
Categories=Office;Network;Email
Comment=Simple text-based Mail User Agent
Exec=mutt %u
Icon=mutt
Name=mutt
" for email: unfold and delete to your signature
noremap ,dd zi:.;/^-- $/d<CR>O-- <UP><End><CR><CR><UP><CR><C-O>zi