Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Denis Akhiyarov denfromufa

🎯
Focusing
Block or report user

Report or block denfromufa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@denfromufa
denfromufa / getobject.py
Created Dec 26, 2018 — forked from EBNull/getobject.py
"Missing" win32com utilities for getting object instances from DLLs or from run-time licenced servers
View getobject.py
__all__ = (
####### Class Objects
#CoGetClassObject - Normal, not wrapped
'CoDllGetClassObject', #Get ClassObject from a DLL file
####### ClassFactory::CreateInstance Wrappers
'CoCreateInstanceFromFactory', #Create an object via IClassFactory::CreateInstance
'CoCreateInstanceFromFactoryLicenced', #Create a licenced object via IClassFactory2::CreateInstanceLic
@denfromufa
denfromufa / fourex.py
Created Dec 5, 2018 — forked from tartakynov/fourex.py
Fourier Extrapolation in Python
View fourex.py
import numpy as np
import pylab as pl
from numpy import fft
def fourierExtrapolation(x, n_predict):
n = x.size
n_harm = 10 # number of harmonics in model
t = np.arange(0, n)
p = np.polyfit(t, x, 1) # find linear trend in x
x_notrend = x - p[0] * t # detrended x
View build_pythonnet_mono.txt
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
testlab@testlab-VirtualBox:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
[sudo] password for testlab:
Executing: /tmp/tmp.KcbNJmuzBI/gpg.1.sh --keyserver
hkp://keyserver.ubuntu.com:80
--recv-keys
3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
gpg: requesting key D3D831EF from hkp server keyserver.ubuntu.com
@denfromufa
denfromufa / open file dialog
Last active Feb 5, 2018 — forked from tritemio/open file dialog
Open file dialog for default ipython notebook in Anaconda
View open file dialog
def openfile_dialog():
from PyQt5 import QtGui
from PyQt5 import QtGui, QtWidgets
app = QtWidgets.QApplication([dir])
fname = QtWidgets.QFileDialog.getOpenFileName(None, "Select a file...", '.', filter="All files (*)")
return str(fname)
View Python.NET.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View RPCA Scikit-Learn.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@denfromufa
denfromufa / 01_multi_select_widget_readme.md
Created Sep 29, 2017 — forked from pbugnion/01_multi_select_widget_readme.md
Multiple checkbox selection with searching with ipywidgets
View 01_multi_select_widget_readme.md

Multiple selection with checkboxes and search field

Often, you want the user to choose n options (where n is small-ish) from a very large (hundreds or thousands) number of possibilities. Good UX around this dictates that the user should be able to search for the options they want.

This gist puts together a minimal example of binding a search field with multiple checkboxes using ipywidgets.

Usage

@denfromufa
denfromufa / clustering_collection_curves.ipynb
Last active Aug 6, 2017
clustering of collection of curves
View clustering_collection_curves.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.