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
{ pkgs ? import <nixpkgs> {} }: | |
let | |
# To use this shell.nix on NixOS your user needs to be configured as such: | |
# users.extraUsers.adisbladis = { | |
# subUidRanges = [{ startUid = 100000; count = 65536; }]; | |
# subGidRanges = [{ startGid = 100000; count = 65536; }]; | |
# }; |
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
############################### | |
## Dell XPS 15 9570 (0x087C) ## | |
############################### | |
{ config, lib, pkgs, ... }: | |
{ | |
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; | |
boot.kernelModules = [ "kvm-intel" "i915" ]; | |
boot.kernelParams = [ |
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
#!/bin/sh | |
echo "Installing Base Packages from the Arch main repositories" | |
sudo pacman -S $(curl https://raw.githubusercontent.com/usmcamp0811/dotfiles/wopr/pkglist-base | cut -d ' ') | |
echo "Installing Base Packages from AUR" | |
sudo pacman -S $(curl https://raw.githubusercontent.com/usmcamp0811/dotfiles/wopr/pkglist-aur-base | cut -d ' ') |
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
;FLAVOR:Marlin | |
;TIME:7063 | |
;Filament used: 4.92822m | |
;Layer height: 0.2 | |
;MINX:108.627 | |
;MINY:103.906 | |
;MINZ:0.2 | |
;MAXX:169.749 | |
;MAXY:135.252 | |
;MAXZ:48 |
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
import holoviews as hv | |
from sklearn.preprocessing import MinMaxScaler | |
from holoviews import opts | |
hv.extension('bokeh') | |
test = DiscretizerGMM(data=X["X"].values, merge_right_of_elbow=False, n_components=20, name="X") | |
gmm_df = test.gmm_df(sort="weights") | |
scale = MinMaxScaler() | |
gmm_df["weights"] = scale.fit_transform(np.reshape(gmm_df["weights"].values, (-1,1))) | |
def gmm_mean_plot(gmm_df, n_std=1): | |
mean_lines = [] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
System Information: | |
OS Version: | |
Linux Distribution: Manjaro Linux | |
Kernel Version: 4.19.14-1-MANJARO #1 SMP PREEMPT Wed Jan 9 17:17:37 UTC 2019 | |
Hardware Info: | |
Machine Type Gigabyte Technology Co., Ltd. Z170X-Gaming 7 Default string | |
CPU Type GenuineIntel x86_64 | |
CPU Info Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz | |
CPU Speed 4200 MHz |
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
# --- | |
# jupyter: | |
# jupytext: | |
# text_representation: | |
# extension: .lgt.py | |
# format_name: light | |
# format_version: '1.3' | |
# jupytext_version: 0.8.4 | |
# kernelspec: | |
# display_name: Python 3.6 (TF) |
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
def ctable_append(cts): | |
""" | |
A function to append multiple ctables and clean up the disk entries along the 0 axis | |
similar to pd.concat([df1, df2], axis=0) | |
:param cts: a string containing the root directory path or a list of ctables | |
:return: ctable | |
""" | |
import shutil |
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
import os | |
import feather | |
from tqdm import tqdm | |
import dask | |
import datetime | |
from dask import delayed | |
from dask import visualize | |
import pandas as pd | |
import dask.dataframe as dd |
NewerOlder