Skip to content

Instantly share code, notes, and snippets.

View ialexpovad's full-sized avatar
:electron:
I may be slow to respond.

nystagmus ialexpovad

:electron:
I may be slow to respond.
View GitHub Profile
@ialexpovad
ialexpovad / Building OpenSSL 1.1.1(b) Notes
Created July 8, 2023 08:27 — forked from csm10495/Building OpenSSL 1.1.1(b) Notes
Building OpenSSL 1.1.1(b) Notes (Windows)
Required: Visual Studio 2015 or 2017 (or probably later works)
Setup
1. Clone/download OpenSSL 1.1.1 source to a folder
2. Download / install Perl (They recommend Active perl)
I recommend using Chocolatey so for me: choco install activeperl
3. Ensure Perl is in the system path. (Choco appears to do this by default)
4. Download / install NASM
I recommend using Chocolatey so for me: choco install nasm
5. Ensure NASM is in the system path. (For me the directory to add was C:\Program Files\NASM)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ialexpovad
ialexpovad / qsettings-xml.hpp
Created June 9, 2023 19:21 — forked from ianmac45/qsettings-xml.hpp
XML Format for QSettings
#pragma once
//TODO include appropriate headers
#include <QtCore/QtCore>
#include <QtXml/QtXml>
bool readSettingsXml(QIODevice &device, QMap<QString, QVariant> &map);
bool writeSettingsXml(QIODevice &device, const QMap<QString, QVariant> &map);
static const QSettings::Format xmlFormat = QSettings::registerFormat("xml", &readSettingsXml, &writeSettingsXml);
static const QString rootName = "config";
@ialexpovad
ialexpovad / .gitignore
Created June 8, 2023 13:29 — forked from xim/.gitignore
autohide-test
*.user
Makefile*
.qmake.stash
release
debug
*.swp
*~
@ialexpovad
ialexpovad / INSTALL_macOS.md
Created May 24, 2023 16:02 — forked from urbanij/INSTALL_macOS.md
Install and use qwt under macOS

Install and use qwt under macOS*:

After downloading it from here https://sourceforge.net/projects/qwt/:

cd qwt-6.1.5
mkdir build && cd build
qmake ..
make -j4
sudo make install # this command install stuff inside /usr/local/
@ialexpovad
ialexpovad / K-Means.py
Created May 16, 2023 17:37 — forked from pmsosa/K-Means.py
K-Means Clustering Implementation
##############################################################################################
### K-Means Python Implementation ###
### http://konukoii.com/blog/2017/01/15/5-min-tutorial-k-means-clustering-in-python/ ###
##############################################################################################
import random
import math
#Euclidian Distance between two d-dimensional points
def eucldist(p0,p1):
@ialexpovad
ialexpovad / analytic_wfm.py
Created May 16, 2023 17:33 — forked from sixtenbe/analytic_wfm.py
Peak detection in Python
#!/usr/bin/python2
# Copyright (C) 2016 Sixten Bergman
# License WTFPL
#
# This program is free software. It comes without any warranty, to the extent
# permitted by applicable law.
# You can redistribute it and/or modify it under the terms of the Do What The
# Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See
@ialexpovad
ialexpovad / Base.cs
Created April 12, 2023 13:42 — forked from weeksdev/Base.cs
WPF MVVM Binding Example
class Base : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{
this.VerifyPropertyName(propertyName);
PropertyChangedEventHandler handler = this.PropertyChanged;
if (handler != null)
{