This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef LWI_H | |
#define LWI_H | |
#include <QListWidgetItem> | |
#include <QListWidget> | |
#include <QString> | |
#include "f2t.h" | |
class lwi : public QListWidgetItem { | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <vector> | |
#include <string> | |
std::string current="your file here"; | |
std::ifstream infile; | |
std::vector<float> n; | |
std::vector<std::vector<float>> nums; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<QByteArray> | |
#include<QVector> | |
#include<QDataStream> | |
QByteArray data; | |
QDataStream in (data); | |
in.setByteOrder(QDataStream::LittleEndian); | |
QVector<float> nums; | |
while(!in.atEnd()){ | |
float f; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This file is part of libreplot. | |
* Copyright (C) 2014-2016 Kuldeep Singh Dhaka <kuldeep@madresistor.com> | |
* | |
* libreplot is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* libreplot is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This file is part of libreplot. | |
* Copyright (C) 2014-2016 Kuldeep Singh Dhaka <kuldeep@madresistor.com> | |
* | |
* libreplot is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* libreplot is distributed in the hope that it will be useful, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TimeAxisItem(pg.AxisItem): | |
def tickStrings(self, values, scale, spacing): | |
return [datetime.fromtimestamp(value) for value in values] | |
class PlotterDate(): | |
def __init__(self, data, starttime,size=(1280,720)): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bs4 import BeautifulSoup | |
import pandas as pd | |
import numpy as np | |
def remove_html_tags(text): | |
"""Remove html tags from a string""" | |
import re | |
clean = re.compile('<.*?>') | |
return re.sub(clean, '', text) |