Skip to content

Instantly share code, notes, and snippets.

View Manuel030's full-sized avatar

Manuel030

  • Berlin, Germany
View GitHub Profile
@Manuel030
Manuel030 / Programming_Languages_Extensions.json
Last active February 21, 2024 10:37 — forked from ppisarczyk/Programming_Languages_Extensions.json
Programming Languages and their File Extensions
[
{
"name": "ABAP",
"type": "programming",
"extensions": [
".abap"
]
},
{
"name": "AGS Script",
@Manuel030
Manuel030 / flake.nix
Created December 16, 2022 13:44
Default Nix Flake
{
description = "A basic flake with a shell";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system: with nixpkgs.legacyPackages.${system};
{
devShell = pkgs.mkShell {
nativeBuildInputs = [ pkgs.bashInteractive ];
@Manuel030
Manuel030 / sample_subset.py
Created April 23, 2021 19:15
Sample a subset of a pandas DataFrame preserving the order of sampled rows
import random
import pandas as pd
def sample_subset(df, n):
"""Sample a subset of a pandas DataFrame preserving the order of sampled rows
Arguments
---------
df (pandas.DataFrame)
n (int): number of rows to be sampled