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 / index.html
Last active October 10, 2019 09:18
DOM is Fantastic - Validation
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Mon formulaire</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T"
crossorigin="anonymous"
window.alert('hello');

Keybase proof

I hereby claim:

  • I am alepee on github.
  • I am alepee (https://keybase.io/alepee) on keybase.
  • I have a public key ASCoBm_tFmFlp2cVmK6gdMYDGJiQUQTy7bZRfWV1DvRy4Qo

To claim this, I am signing this object:

@alepee
alepee / battery.sh
Created July 7, 2017 08:00
display battery status in iTerm2 RPROMPT and warn if battery is going low (<5%)
##
# depends on battery zsh plugin
# https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/battery/battery.plugin.zsh
##
if [ "$(ioreg -rc "AppleSmartBattery" | wc -m)" -gt "0" ]; then
battery_charge() {
read -r last_battery_pct < $HOME/.battery
curr_battery_pct="$(battery_pct)"
@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" && \

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

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)
@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
}
@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 / 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({