Skip to content

Instantly share code, notes, and snippets.

def check_missing_data(df):
# Check for missing values
proportion_null_rows = 100*(round(df.isnull().any(axis=1).sum()/df.any(axis=1).count(),2))
if proportion_null_rows <= 5:
print(f"There are {df.isnull().any(axis=1).sum()} rows with a null value. All of them are erased!")
df.dropna()
else:
print("Too many null values, we need to check columns by columns further.")
if df.isnull().sum().sum() > 0:
print("\nProportion of missing values by column")
@wumb0
wumb0 / delta_patch.py
Last active May 8, 2024 14:43
a script for applying MS patch deltas
from ctypes import (windll, wintypes, c_uint64, cast, POINTER, Union, c_ubyte,
LittleEndianStructure, byref, c_size_t)
import zlib
# types and flags
DELTA_FLAG_TYPE = c_uint64
DELTA_FLAG_NONE = 0x00000000
DELTA_APPLY_FLAG_ALLOW_PA19 = 0x00000001
@kikugie
kikugie / stdtools.md
Last active May 8, 2024 14:43
Storagetech mod tools
@xbdmHQ
xbdmHQ / Custom Windows 10 & Windows 11 Privacy Tweaked OS.md
Last active May 8, 2024 14:39
Best Custom Windows 10 & Windows 11 Privacy Tweaked OS

Best-Custom-Windows-10-11-Privacy-Tweaked-OS

A look into the best custom windows 10 and 11 privacy tweaked os for limiting the spying invasive by microsoft.

Revision (Open Source / Recommended)

Revision - a global community dedicated to free information and collaboration. They value cultural diversity and embrace open source principles. Every mind is unique and every contribution is valued.

ReviOS is a customized version of Windows with improved performance, stability, and compatibility. It aspires to re-create what Windows as an operating system should have been - easy and simple.

With the main audience being gamers, power-users and enthusiasts, we understand that performance, speed and low latency is obligatory, which is why great effort has been invested into making ReviOS a capable, efficient yet private operating system.

@heroheman
heroheman / ranger-cheatsheet.md
Last active May 8, 2024 14:38
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@dideler
dideler / bootstrapping.md
Last active May 8, 2024 14:38
Bootstrapping - a list of useful resources to get up and running quickly

Welcome!

UPDATE: This list is no longer maintained. I've moved it to its own repo so you can send suggestions as Pull Requests. https://github.com/dideler/bootstrapping/

For feedback or suggestions, please send a tweet (@dideler). Gist comments don't notify me. Pull requests aren't possible with gists (yet), so I don't recommend forking because then I can't easily get the change.

Starring this gist will give me an idea of how many people consider this list useful.

@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active May 8, 2024 14:37
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
@n1snt
n1snt / Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md
Last active May 8, 2024 14:37
Oh my ZSH with zsh-autosuggestions zsh-syntax-highlighting zsh-fast-syntax-highlighting and zsh-autocomplete.md

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@mndambuki
mndambuki / officeActivator.bat
Created June 7, 2020 03:41
Activate Microsoft Office 2019
@echo off
title Activate Microsoft Office 2019 !
cls
echo ============================================================================
echo #Project: Activating Microsoft software products
echo ============================================================================
echo.
echo #Supported products:
echo - Microsoft Office Standard 2019
echo - Microsoft Office Professional Plus 2019
@xwipeoutx
xwipeoutx / xr-tech-interview.md
Last active May 8, 2024 14:31
XR Tech Interview Questions

XR specific tech interview

AR / VR / MR / XR

  • Explain what is AR / VR / XR / MR, how are they connected? Why would you choose one over another?
  • Your client is saying "I want a HoloLens app that can do X".  How do you qualify if they're wasting their money?
  • Tell me about some logistical implications of this tech in the enterprise?
  • How does developing an XR app differ from a traditional 2D or 3D game / app?
  • Specifically, what are some downsides to translucent displays (HoloLens, Magic Leap), and how do you accommodate for them?