Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
{'timestamp': '2019-02-06 11:03:15.650098', 'axisSpeedRpm': 1.7090365886688232, 'axisSLoad': -0.05493331700563431, 'analogInputValueX': 3.8829524517059326, 'analogInputValueY': -7.659313678741455, 'analogInputValueZ': 0.0}
{'timestamp': '2019-02-06 11:03:16.324970', 'axisSpeedRpm': 1.7090365886688232, 'axisSLoad': 0.0, 'analogInputValueX': 7.765904903411865, 'analogInputValueY': -7.659313678741455, 'analogInputValueZ': -3.8296568393707275}
{'timestamp': '2019-02-06 11:03:18.964207', 'axisSpeedRpm': 1.7090365886688232, 'axisSLoad': -0.05493331700563431, 'analogInputValueX': 0.0, 'analogInputValueY': -7.659313678741455, 'analogInputValueZ': -3.8296568393707275}
{'timestamp': '2019-02-06 11:03:20.320778', 'axisSpeedRpm': 1.7090365886688232, 'axisSLoad': 0.048829615116119385, 'analogInputValueX': -19.414762496948242, 'analogInputValueY': -7.659313678741455, 'analogInputValueZ': -3.8296568393707275}
{'timestamp': '2019-02-06 11:03:23.135435', 'axisSpeedRpm': 1.7090365886688232, 'axisSLoad': 0.0, 'analogInputValueX
// defines pins numbers
const int stepX = 2;
const int dirX = 5;
const int stepY = 3;
const int dirY = 6;
const int stepZ = 4;
const int dirZ = 7;
@ptrstovka
ptrstovka / nginx-cert.sh
Created June 22, 2017 07:44 — forked from frengky/nginx-cert.sh
Nginx dynamic document root folder and sub-domain configuration
#!/bin/sh
# Self signed certificate for Nginx HTTPS
#
openssl req -x509 -nodes -days 1825 -newkey rsa:2048 -keyout /etc/nginx/ssl/my-domain.key -out /etc/nginx/ssl/my-domain.crt
@ptrstovka
ptrstovka / FixedGridView.java
Created January 17, 2017 15:13
how to set fixed size on GridView
// working only when gridview is in ScrollView
private void setFixedHeightOnGridView() {
int fixedHeight = 0;
int columnCount = 2;
int rows = 0;
for (int i = 0; i < mNavigationView.getAdapter().getCount(); i = i + columnCount) {
int highestItemInRow = 0;
for (int j = i; j < i + columnCount; j++) {