Skip to content

Instantly share code, notes, and snippets.

View Ddedalus's full-sized avatar

Hubert Bereś Ddedalus

View GitHub Profile
@HenryJia
HenryJia / tsne_mnist_simple.py
Last active October 11, 2019 15:20
t-distributed Stochatic Neightbour Embedding on MNIST
# Based on https://scipy-lectures.org/packages/scikit-learn/auto_examples/plot_tsne.html
# tSNE: https://en.wikipedia.org/wiki/T-distributed_stochastic_neighbor_embedding
# MNIST Dataset: http://yann.lecun.com/exdb/mnist/
import struct
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
@rdapaz
rdapaz / win32com.client.py
Last active December 18, 2023 22:50
Fix for module win32com.gen_py has no attribute 'CLSIDToPackageMap'
# If errors are found, do this
# clear contents of C:\Users\<username>\AppData\Local\Temp\gen_py
# that should fix it, to test it type
import win32com.client
app = win32com.client.gencache.EnsureDispatch('Word.Application')
app.Visible = True
@stephenhouser
stephenhouser / Bing-Image-Scraper
Last active May 20, 2023 04:31
Bing-Image-Scraper
Bing image scraper example using Python to query and scrape Microsoft Bing image search.
@thevtm
thevtm / workspace-switcher
Last active June 11, 2020 03:13
CLI workspace switcher for GNOME based on Based on Andy Balaam's workspace-switcher
#!/bin/bash
# Workspace switcher for GNOME
# Author: thevtm@github
#
# Based on Andy Balaam's workspace-switcher
# http://www.artificialworlds.net/blog/2011/03/04/switching-workspace-in-gnome-via-the-command-line/
#
# REQUIREMENTS:
# * wmctrl
#