Skip to content

Instantly share code, notes, and snippets.

View source-nerd's full-sized avatar

Sam source-nerd

View GitHub Profile
@source-nerd
source-nerd / supress-warning-idea.md
Created August 10, 2022 10:57 — forked from vegaasen/supress-warning-idea.md
SuppressWarnings with IntelliJ Idea

@SuppressWarnings - IntelliJ modes

Information

This list may grow each year with either new versions or patches. Enjoy!

Usage

Following is an example related to the usage of the various ignore capabilities.

@source-nerd
source-nerd / Windows 10 Pro Activation.md
Created February 18, 2020 23:14
Windows 10 Pro Activation
@source-nerd
source-nerd / Windows 10 Pro Activation.md
Created February 18, 2020 23:14
Windows 10 Pro Activation
@source-nerd
source-nerd / confusion_matrix_pretty_print.py
Created March 30, 2019 04:27 — forked from shaypal5/confusion_matrix_pretty_print.py
Pretty print a confusion matrix with seaborn
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
def print_confusion_matrix(confusion_matrix, class_names, figsize = (10,7), fontsize=14):
"""Prints a confusion matrix, as returned by sklearn.metrics.confusion_matrix, as a heatmap.
Arguments
---------
confusion_matrix: numpy.ndarray
@source-nerd
source-nerd / naive-rae.py
Created February 22, 2019 23:04 — forked from ktnyt/naive-rae.py
Naive implementation of a recursive autoencoder
import numpy as np
import theano
import theano.tensor as T
class RAE(object):
def __init__(self, input, rng, d, W=None, b=None, U=None, c=None):
dv = d
dh = d * 2
self.dv = dv
@source-nerd
source-nerd / yosemite ntfs read+write.txt
Created February 4, 2019 23:06 — forked from bjorgvino/yosemite ntfs read+write.txt
osxfuse + ntfs-3g + Yosemite = NTFS R/W
Remove osxfuse if installed via homebrew:
> brew uninstall osxfuse
Install osxfuse binary and choose to install the MacFUSE compatibility layer:
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files
Reboot (optional but recommended by osxfuse)
Install ntfs-3g via homebrew:
> brew update && brew install ntfs-3g