Skip to content

Instantly share code, notes, and snippets.

@mammothbane
mammothbane / .editorconfig
Last active February 10, 2021 18:34
typical editorconfig
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
[*.nix]
indent_size = 2
@mammothbane
mammothbane / flake.nix
Last active January 3, 2021 15:03
base flake
{
inputs = {
nixpkgs.url = github:nixos/nixpkgs/master;
flake-utils.url = github:numtide/flake-utils;
};
description = "";
outputs = { self, nixpkgs, flake-utils }: (flake-utils.lib.eachDefaultSystem (system:
let
@mammothbane
mammothbane / .rustfmt.toml
Last active March 31, 2022 11:24
standard rustfmt.toml
blank_lines_upper_bound = 1
brace_style = "SameLineWhere"
condense_wildcard_suffixes = true
control_brace_style = "AlwaysSameLine"
edition = "2018"
empty_item_single_line = true
enum_discrim_align_threshold = 25
fn_args_layout = "Tall"
force_explicit_abi = true
force_multiline_blocks = false
@mammothbane
mammothbane / .env
Created February 14, 2018 01:05
dotenv! macro hangs
MY_KEY=MY_VALUE
Host hadoop_name
HostName 34.207.74.173
User ubuntu
IdentityFile ~/.ssh/hadoopkey.pem
Host hadoop_data1
HostName 54.89.92.59
User ubuntu
IdentityFile ~/.ssh/hadoopkey.pem
{
"name": "heist",
"parameters": {
"target": [
"magic item",
"person (rescue/capture)",
"weapon",
"piece of art",
"reverse heist: plant an object",
{
"name": "heist",
"parameters": {
"target": [
"magic item",
"person (rescue/capture)",
"weapon",
"piece of art",
"reverse heist: plant an object",
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 13,
// font family with optional fallbacks
fontFamily: 'Consolas, Menlo, "DejaVu Sans Mono", "Lucida Console", monospace',
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
cursorColor: 'rgba(248,28,229,0.8)',
@mammothbane
mammothbane / jet.py
Created April 1, 2017 04:32
approximate flight parameters for an iron man-like jet suit
from bokeh.plotting import figure, output_file, show
from numpy import sqrt, sin, arctan2
import scipy.integrate as integrate
import numpy as np
import pint
"""
This script approximates the flight range and speed of a jet-powered Iron Man-

Keybase proof

I hereby claim:

  • I am mammothbane on github.
  • I am mammothbane (https://keybase.io/mammothbane) on keybase.
  • I have a public key whose fingerprint is 0AA0 EACF 1CA6 18FF 9FA3 A4F7 5DEB 682B 2F05 7E33

To claim this, I am signing this object: