Skip to content

Instantly share code, notes, and snippets.

View quentinchap's full-sized avatar

CHAPELLE Quentin quentinchap

View GitHub Profile
#!/bin/bash
npm init --yes;
npm i express typescript ts-node dotenv;
npm i -D typescript @types/express @types/node concurrently nodemon;
npm i --save-dev @types/express;
tsc --init;
mkdir configs controllers middlewares models routes services utils;
@quentinchap
quentinchap / linearregression_trainingcolab1.ipynb
Last active August 23, 2020 17:06
simpleLinearRegression.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
let promise1 = new Promise((resolve, reject) =>
resolve('Success!');
//reject('error');
);
promise1.then(res =>
alert(result);
}, function (err) {
alert(err);
}
sensor:
- platform: influxdb
host: localhost
username: username
password: pass
queries:
- name: 'Salon'
unit_of_measurement: °C
value_template: '{{ value | round(1) }}'
group_function: last
mkdir /home/pi/image-cam
sudo chgrp motion /home/pi/image-cam
chmod g+rwx /home/pi/image-cam
daemon on
stream_localhost off
target_dir /home/pi/image-cam