Skip to content

Instantly share code, notes, and snippets.

View alepee's full-sized avatar

Antoine Lépée alepee

View GitHub Profile
@alepee
alepee / sublimetext-keyboard-shortcuts.sublime-keymap
Last active November 9, 2022 22:17
SublimeText shortcuts for Mac French keyboard (azerty)
[
// Square brackets aren't that usable in azerty.
// Replaces [ with ù and ] with $, closest usable combination to the American qwerty
{ "keys": ["super+shift+ù"], "command": "prev_view" },
{ "keys": ["super+shift+$"], "command": "next_view" },
{ "keys": ["super+ù"], "command": "unindent" },
{ "keys": ["super+$"], "command": "indent" },
{ "keys": ["super+alt+ù"], "command": "fold" },
@alepee
alepee / sublimetext-preference.sublime-settings
Last active August 29, 2015 14:00
SublimeText preferences
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_delay": 50,
"auto_complete_selector": "source - comment",
"auto_complete_size_limit": 4194304,
"auto_complete_triggers":
[
{
"characters": "<",
@alepee
alepee / langformat.yml
Created July 18, 2014 15:19
format.yml
fr:
activemodel:
errors:
format: '%{attribute} %{message}'
messages: &id001
accepted: doit être accepté(e)
blank: doit être rempli(e)
confirmation: ne concorde pas avec la confirmation
empty: doit être rempli(e)
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@alepee
alepee / true_responsive_animation.js
Last active August 29, 2015 14:13
Edge Animate CC responsive layout based on parent element width
// Copy/Paste this script into your main Stage within `compositionReady`
(function(){
var stage = sym.getSymbolElement('.' + e.compId);
var parent = stage.parent();
var stageWidth = stage.width();
var stageHeight = stage.height();
stage.css({
@alepee
alepee / librespot_config_on_raspberry_pi_3.sh
Last active March 10, 2018 22:45
Setup a Spotify Connect client
#!/bin/bash
# Setup a Spotify Connect client
#
# Hardware:
# - RaspberryPi3
# - Creative Sound Blaster Play2
#
# Resources:
# https://github.com/plietar/librespot
@alepee
alepee / rpi.sh
Last active April 22, 2017 20:14
Receipes for Raspberry Pi management
LOCAL_IP_ADDRESS=$(ifconfig | grep -E -no "inet ([0-9]{1,3}\.*){4}" | cut -d" " -f2 | grep -v 127 | cut -d\n -f1)
LOCAL_IP_GROUP=$(echo $LOCAL_IP_ADDRESS | cut -d. -f1-3)
function rpi-connect
{
DEST_ADDR="$LOCAL_IP_GROUP.$1"
echo "Trying to connect to $DEST_ADDR"
ssh -i $HOME/.ssh/rpi pi@$DEST_ADDR
}

Stratégie d'intégration

Briques

  • Profilage par actions
  • Contenus par expériences décorélé des prestations / lieux / agents
  • Recommendation d'itinéraires par relation avec des contenus (expériences)
  • Génération d'itinéraires par relation des Lieux avec des Contenus (expériences)

Briques

  • Board d'inspiration : Contenus expériences + Naviguation UX + petite couche de recommandation
  • La recommendation sous toutes ses formes : qu'elle propose de l'existant ou du nouveau -> surcouche du board d'inspiration (se base sur un formulaire particulier)
  • L'UX/UI de la page itinéraire
  • La modélisation de l'itinéraire et la technologie utilisée

Scénarios

@alepee
alepee / free_disk_space.sh
Created July 7, 2017 07:28
clear cache for rubygem, yarn, composer, homebrew, docker and remove temp files
###
# free_disk_space
#
# remove files from downloads folder
# clear cache for rubygem, yarn, composer, homebrew, docker
###
free_disk_space() {
if command -v docker &> /dev/null; then
echo "--> Clear Docker images cache" && \