Skip to content

Instantly share code, notes, and snippets.

View braun-steven's full-sized avatar

Steven Braun braun-steven

View GitHub Profile
@braun-steven
braun-steven / install-instructions.md
Created April 29, 2024 08:15 — forked from crispyricepc/install-instructions.md
wlprop - An xprop clone for wlroots based compositors

Dependencies

Make sure you have installed the following commands:

  • swaymsg
  • jq
  • slurp
  • awk

Installation

@braun-steven
braun-steven / results.txt
Created January 20, 2022 06:12
PyTorch Dimension Performance Evaluation for Softmax/Sum/Min
[---- F.softmax(x, dim) -----]
| cpu | cuda
1 threads: -------------------
dim=0 | 197.1 | 9.1
dim=1 | 193.6 | 11.9
dim=2 | 210.2 | 11.5
dim=3 | 228.8 | 3.4
Times are in milliseconds (ms).
@braun-steven
braun-steven / layerwise_spn_example.py
Created April 3, 2020 16:29
Layer-wise SPN Example Usage: Forward, Sampling, Conditional Sampling
import matplotlib.pyplot as plt
import numpy as np
import torch
from sklearn.datasets import make_blobs
from torch import nn
from tqdm import trange
from spn.algorithms.layerwise.layers import Product, Sum
from spn.algorithms.layerwise.utils import provide_evidence
from spn.experiments.RandomSPNs_layerwise.distributions import RatNormal
@braun-steven
braun-steven / lily58-keyboard.org
Created August 12, 2019 22:52
Lily58 Pro Parts List
import re
import pandas as pd
from pandas import DataFrame
import random
import sys
from os import path
from PIL import Image
import numpy as np
@braun-steven
braun-steven / gogs_export_import_issues.py
Created February 26, 2017 21:00
Export and import issues in gogs
import json
from time import sleep
from pprint import pprint
import requests
def main():
# User from old repo
USER_FROM = 'user'
PW_FROM = 'password'
AUTH_FROM = (USER_FROM, PW_FROM)