Skip to content

Instantly share code, notes, and snippets.

View astatide's full-sized avatar
🦇

Audrey MP astatide

🦇
View GitHub Profile
@astatide
astatide / Steam runtime diagnostic
Last active October 1, 2025 00:35
SteamHardwareInformation
"LD_* scout runtime" information:
{
"steam-runtime-system-info" : {
"version" : "0.20250718.0+srt1",
"path" : "/home/astatide/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/bin/steam-runtime-system-info"
},
"can-write-uinput" : true,
"steam-installation" : {
"path" : "/home/astatide/.local/share/Steam",
"data_path" : "/home/astatide/.local/share/Steam",
@astatide
astatide / pathfinder.json
Last active October 27, 2023 21:07
Wrath of the Righteous auto portrait downloader/cropper
{
"portraits": [
{
"URL": "https://i.pinimg.com/originals/d1/60/3c/d1603cc29275cec1fca741b48fa46921.png",
"resize": ["1.5", "1", "1"],
"tweaks": ["+0+40", "+0+0", "+0+0"]
},
{
"URL": "https://i.pinimg.com/originals/46/4a/6d/464a6d9fb5de785359f72a55b82bc863.jpg",
"resize": ["3.5", "2", "1.5"],
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{ stdenv, lib, fetchFromGitHub, systemd, libinput, pugixml, cairo, xorg, gtk3-x11, pcre, pkg-config, cmake }:
stdenv.mkDerivation rec {
pname = "touchegg";
version = "2.0.10";
src = fetchFromGitHub {
owner = "JoseExposito";
repo = pname;
rev = version;
sha256 = "18v3i0wjkhqxjdkw188r7y2bnr9rj37ri5xnkwibs12y14hbs9n6";
@astatide
astatide / externtest.chpl
Created January 28, 2020 23:15
Chapel extern reproducer
module C {
extern {
#include "externtest.h"
static int foo(int x) { return x + 1; }
struct mystruct obj;
}
proc tryMe() {
writeln(obj.a);
return foo(3);
}
@astatide
astatide / Makefile
Created September 12, 2019 22:06
Python's attempt to start Chapel's Begin
pythonlib:
chpl pBegin.chpl --library-python --library-python-name=pBegin --library --comm none --launcher none --devel
@astatide
astatide / testFailure.chpl
Created March 27, 2019 20:06
Chapel Compiler Error
use IO; // yes, I am aware I don't explicitly need this.
var logFiles: domain(string);
var fileHandles: [logFiles] file;
var testFile: string = 'failure.failface'; // good name! Guaranteed to be unique.
logFiles.add(testFile);
// I mean, it's perhaps not surprising this fails, but it should likely not
// not result in compiler error.
// By Audrey Pratt, care of Cray
// Load up the random module. We need randomness!
use Random;
// Chapel seems to just seed with the timer, so can we pull from the entropy source?
use IO;
// (turns out the answer is yes)
class UDevRandomHandler {
@astatide
astatide / WESTData.py
Last active November 19, 2017 17:47
PlotFunctions using Pandas
#! /usr/bin/python
# SOME SORT OF COPYRIGHT OR LICENCE, I'M SURE.
# IMPORT STATEMENTS
import numpy as np
import pandas as pd
import seaborn as sns
import h5py
@astatide
astatide / BINS
Created May 16, 2017 15:08
STATES and BINS for WESTPA
---
bins:
type: RectilinearBinMapper
boundaries: [[0.0,4.0,9.25,10.00,100000]]