Skip to content

Instantly share code, notes, and snippets.

View bdice's full-sized avatar
👨‍💻

Bradley Dice bdice

👨‍💻
View GitHub Profile
@jglaser
jglaser / blazingsql_on_summit.txt
Last active January 11, 2021 16:29
Build RAPIDS + BlazingSQL on Summit
# Build BlazingSQL + RAPIDS on Summit
# Jens Glaser <glaserj@ornl.gov> July 28 2020
# wherever bif128 occurs below, this refers to the project ID
# replace with yours, e.g. abc123
# est. "pure compile time" 3-4h
$ module list
@jrhemstad
jrhemstad / ninja_instructions.md
Last active February 22, 2024 10:00
How to build with Ninja

How to Use Ninja

  1. Install Ninja
sudo apt install ninja-build
  1. Configure CMake to create Ninja build files
mkdir build &amp;&amp; cd build
@P7h
P7h / tmux__CentOS__build_from_source.sh
Last active May 2, 2024 01:27
tmux 2.0 and tmux 2.3 installation steps for Ubuntu. Or build from tmux source v2.5 for Ubuntu and CentOS.
# Steps to build and install tmux from source.
# Takes < 25 seconds on EC2 env [even on a low-end config instance].
VERSION=2.7
sudo yum -y remove tmux
sudo yum -y install wget tar libevent-devel ncurses-devel
wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz
tar xzf tmux-${VERSION}.tar.gz
rm -f tmux-${VERSION}.tar.gz
cd tmux-${VERSION}
import ddf.minim.analysis.*;
import ddf.minim.*;
Minim minim;
AudioPlayer jingle;
FFT fft;
AudioInput in;
float[] angle;
float[] y, x;
void setup()
@dideler
dideler / pyargs.md
Last active January 23, 2023 16:39
Parsing Command-Line Argument in Python

Command-line arguments in Python show up in sys.argv as a list of strings (so you'll need to import the sys module).

For example, if you want to print all passed command-line arguments:

import sys
print(sys.argv)  # Note the first argument is always the script filename.

Command-line options are sometimes passed by position (e.g. myprogram foo bar) and sometimes by using a "-name value" pair (e.g. myprogram -a foo -b bar).