Skip to content

Instantly share code, notes, and snippets.

View gautiermichelin's full-sized avatar

GautierMichelin gautiermichelin

View GitHub Profile
crock / RangeSlider.js
Last active May 15, 2024 18:14
Multi-handle range slider input (HTML5 Web Component)
import { polyfillDeclarativeShadowDom } from "./pollyfill";
* Multi-handle range slider input Web Component
* @class RangeSlider
* @extends HTMLElement
* @property {number} min - Minimum value of the slider
* @property {number} max - Maximum value of the slider
* @property {number} step - Step value of the slider
* @property {number[]} values - Array of values for each handle
kehh /
Last active May 14, 2018 19:48 — forked from anonymous/
Install CollectiveAccess
# Adapted from
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
set -e
guiyomh /
Created January 12, 2017 09:12
Mysql Backup data and schema
# Configuration de base: datestamp e.g. YYYYMMDD
DATE=$(date +"%Y%m%d")
# Dossier où sauvegarder les backups (créez le d'abord!)
PurpleBooth /
Last active May 25, 2024 19:14
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


JenniferMack / md-toc.rb
Last active April 11, 2024 18:22
Create a table of contents for Ulysses markdown
#!/usr/bin/env ruby
toc = "# Table of Contents\n"
newmd = ""
ARGF.each_line do |line|
newmd << line
next if !line.start_with?("#")
heading = line.gsub("#", "").strip
nl5887 /
Last active March 22, 2022 09:07
Bash and zsh alias for Transfers files and directories to
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/\ncat /tmp/ | transfer"
return 1
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
ThomasG77 / index.html
Last active March 9, 2024 19:36
Leaflet simple marker
<!doctype html>
<title>Exemple de Leaflet sans Browserify</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="" />
<style type="text/css">
#map { height: 380px; }
timhodson / gist:033f635421628cc9361f
Last active September 25, 2021 04:43
Install yaz-client on a mac
ruby -e "$(curl -fsSL"

brew install yaz

yaz-client will then be available and you can use it like this:

run the program and you get a Z> prompt.

kehh / collectiveaccess_attributes_crosstab.sql
Last active December 30, 2020 10:18
CollectiveAccess crostab for attributes
-- This creates a mysql table which contains the values of
-- datamodel.conf so that we can use the values in constructing
-- queries
DROP TABLE IF EXISTS cmis_table_numbers;
CREATE TABLE cmis_table_numbers (
table_num INT(11) PRIMARY KEY,
n0ts /
Created May 1, 2014 06:35
execute bash script from remote site
bash <(curl -s
curl | bash -s arg1 arg2