Skip to content

Instantly share code, notes, and snippets.

View pascal-schetelat's full-sized avatar

Pascal Schetelat pascal-schetelat

View GitHub Profile
@pascal-schetelat
pascal-schetelat / aramis_wiser_connect.py
Created February 28, 2021 10:01
Auth et API du module IP wiser EER31800 de Schneider
my_char = "PzLaM2ZqOx5Ks3NwIcJ1Sd6NeUvH7WfBrY9AbGgVtTnGhVyTmG8EjVu0TkFi4QClRoDpX"
mac_addr = '00:80:F4:xx:xx:xx'
replaceAll = mac_addr.replace(':', '')
def generatePasswd(str1=replaceAll, i=len(replaceAll), str2=my_char):
str3 = str1
i2 = i
@pascal-schetelat
pascal-schetelat / gist:8382651
Last active May 20, 2021 14:00
Slope graph tutorial
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": "slopeGraphs"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "slopeGraphs"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@pascal-schetelat
pascal-schetelat / slope.py
Created November 30, 2013 23:42
Slope plot, Tufte style
# -*- coding: utf-8 -*-
"""
Created on Sat Nov 30 22:32:04 2013
@author: pascal Schetelat
"""
import matplotlib.pyplot as plt