Skip to content

Instantly share code, notes, and snippets.

Avatar
🐧
Art, engineering & digital training

Yoan Mollard ymollard

🐧
Art, engineering & digital training
  • Bordeaux INP
  • Bordeaux, France
View GitHub Profile
View build_ios.bash
git clone git clone https://github.com/arbalet-project/frontage-frontend.git -b ionic_5
cd frontage-frontend
npm i
ionic build
# Generate assets with cordova
ionic capacitor open ios # Close Xcode then
npm install -g cordova-res
cordova-res ios
wget https://gist.githubusercontent.com/dalezak/a6b1de39091f4ace220695d72717ac71/raw/3c858045b84dab9d39bd53cb2d19fba3e523bef4/resources.js
@ymollard
ymollard / config.json
Created Sep 26, 2020 — forked from EtienneSchmitz/config.json
Frontage/Bordeaux
View config.json
{
"apps": [
"Flags",
"RandomFlashing",
"SweepRand",
"SweepAsync",
"Tetris",
"Snake",
"Drawing"
],
View config_capsciences.json
{
"apps": [
"Flags",
"RandomFlashing",
"SweepRand",
"SweepAsync",
"Tetris",
"Snake",
"Drawing"
],
@ymollard
ymollard / to_pypi.bash
Created Aug 28, 2020
Create tags to trigger publishing to Pypi
View to_pypi.bash
git commit -am "Version bump"
git push origin master
git tag 4.0.3
git push 4.0.3
@ymollard
ymollard / captures_to_gif.bash
Created Aug 14, 2020
Crop screen captures and make a gif
View captures_to_gif.bash
#!/bin/bash
# Change +0+0 (+w+h) to select the upper left point of the rectangle to be cropped
for i in *png; do convert "$i" -crop 1920x1080+0+0 "cropped-$i"; done;
mkdir cropped && mv cropped*png cropped && cd cropped
convert -delay 10 *.png +repage animated.gif
View rosa.md
ssh pi@rosa.local
sudo service ioservice stop

python3 rosa-master/rpi/ws_server.py --verbose
Server up and running.

#  Connexion Python

Exception in thread Thread-5:
@ymollard
ymollard / old_versions_poppy_or_ros.md
Last active Feb 12, 2021
Few steps to debug old versions of Poppy Python Ubuntu etc
View old_versions_poppy_or_ros.md

Poppy notebook dealing with old versions

No installed poppy creature were found!

Solution:

pip install ikpy==2.3.3

Rapyuta

  • From 16.04 ROS Kinetic
  • pip install pip==9.0.1
View density.md

Histogram and density plot

plt.hist(counts, bins=30) (where 30 is the number of desired bins)

otherwise with pandas: pd.Series(count).hist()
pd.Series(temperatures) - the occurrences variable is not needed
@ymollard
ymollard / quick_logging.py
Created Feb 12, 2020
Python 3 quick stdout logging
View quick_logging.py
import logging, sys
logging.basicConfig(stream=sys.stderr, level="DEBUG")