Skip to content

Instantly share code, notes, and snippets.

View gautiermichelin's full-sized avatar

GautierMichelin gautiermichelin

View GitHub Profile
@gautiermichelin
gautiermichelin / arangodb-docker.sh
Created January 28, 2017 19:50
Installer ArangoDB sous Docker
#!/bin/bash
docker run -e ARANGO_RANDOM_ROOT_PASSWORD=1 -p 8529:8529 arangodb/arangodb:3.1.9
---
# `vagrant_box` can also be set to geerlingguy/centos6, geerlingguy/centos7,
# geerlingguy/ubuntu1404, geerlingguy/ubuntu1204, parallels/ubuntu-14.04, etc.
vagrant_box: geerlingguy/ubuntu1604
vagrant_user: vagrant
vagrant_synced_folder_default_type: nfs
# If you need to run multiple instances of Drupal VM, set a unique hostname,
# machine name, and IP address for each instance.
vagrant_hostname: drupalvm.dev
@gautiermichelin
gautiermichelin / affixes_smf_flat.json
Last active December 10, 2016 19:30
Techniques et matériaux SMF pour tests développement
["affixe couleur",
"blanc",
"blanche ",
"blanc de Chine",
"blanc de céruse",
"blanc gris coquille",
"blanc jaune ivoire",
"couleur",
"ambré",
"ambrée ",
@gautiermichelin
gautiermichelin / .block
Created November 7, 2016 17:00 — forked from mbostock/.block
Heatmap (Canvas, JSON)
license: gpl-3.0
@gautiermichelin
gautiermichelin / README.md
Last active November 7, 2016 09:24 — forked from rfilmyer/README.md
D3 Sun Heatmap example

This is a D3.js Heatmap example showing how the highest sun position of the day (which directly correlates with average temperature) changes over the year depending on the latitude of the place. The actual temperature chart would be shifted to the right a bit beacuse of thermal lag.

The data for the chart is calculated using SunCalc.

@gautiermichelin
gautiermichelin / gist:da0f5e74b318fd1a64e807881234c376
Last active October 24, 2016 09:16 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
# Remove any trace of Debian Multimedia in /etc/apt/sources.list
apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev \
libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev \
libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev yasm libx264-dev
mkdir ~/ffmpeg_sources
mkdir /usr/local/ffmpeg_build
cd ~/ffmpeg_sources
#x265
@gautiermichelin
gautiermichelin / composer.json
Created July 21, 2016 10:11
Marketcircle Billings Pro : convert BEX file to TSV (tabulated CSV)
{
"require": {
"rodneyrehm/plist": "^2.0"
}
}
@gautiermichelin
gautiermichelin / guitar-fretboard.js
Last active July 6, 2016 20:03
guitar-fretboard.js
jQuery(document).ready(function(){
var slideSpeed = 300;
var noteToShow = "All";
var canClick = true;
var notes = {
e: ['E','F','F#','G','G#','A','A#','B','C','C#','D','D#','E'],
a: ['A','A#','B','C','C#','D','D#','E','F','F#','G','G#',"A"],
d: ['D','D#','E','F','F#','G','G#','A','A#','B','C','C#','D'],
g: ['G','G#','A','A#','B','C','C#','D','D#','E','F','F#','G'],
@gautiermichelin
gautiermichelin / create_sql_for_ca_users_insertion.php
Last active June 10, 2016 05:19
Import users from a CSV file into CollectiveAccess, creating here a bunch of SQL inserts to run into a CA database
<?php
// Import users from a CSV file into CollectiveAccess, creating here a bunch of SQL inserts to run into a CA database
// 06/2016, Gautier Michelin
ini_set('auto_detect_line_endings', TRUE);
$ca_install_prefix = "saintmaurtest_";
$rows = array_map('str_getcsv', file('adherents_artotheque_view.csv'));
$header = array_shift($rows);
$csv = array();