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 / 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)"

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:

window.alert('hello');
@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"