Skip to content

Instantly share code, notes, and snippets.

View stormasm's full-sized avatar
πŸ’­
nushell core team member

Michael Angerman stormasm

πŸ’­
nushell core team member
  • arcadian group
  • corvallis, oregon
View GitHub Profile
@stormasm
stormasm / list_example.rs
Created October 28, 2024 03:17 — forked from 143mailliw/list_example.rs
GPUI List Example
use gpui::*;
pub struct ListExample {
state: ListState,
my_data: Model<Vec<SharedString>>,
}
impl ListExample {
/// Creates the list state from our Model. Since we'll need to do this twice (once when the
/// view is created, and many times afterwards when our source model is updated), it should
@stormasm
stormasm / merge_vs_rebase_vs_squash.md
Created January 15, 2024 03:04 — forked from mitchellh/merge_vs_rebase_vs_squash.md
Merge vs. Rebase vs. Squash

I get asked pretty regularly what my opinion is on merge commits vs rebasing vs squashing. I've typed up this response so many times that I've decided to just put it in a gist so I can reference it whenever it comes up again.

I use merge, squash, rebase all situationally. I believe they all have their merits but their usage depends on the context. I think anyone who says any particular strategy is the right answer 100% of the time is wrong, but I think there is considerable acceptable leeway in when you use each. What follows is my personal and professional opinion:

@stormasm
stormasm / ANSI.md
Created January 3, 2024 17:27 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@stormasm
stormasm / python_environment_setup.md
Created September 24, 2023 16:47 — forked from wronk/python_environment_setup.md
Setting up your python development environment (with pyenv, virtualenv, and virtualenvwrapper)

Overview of Python Virtual Environments

This guide is targetted at intermediate or expert users who want low-level control over their Python environments.

When you're working on multiple coding projects, you might want a couple different version of Python and/or modules installed. This helps keep each workflow in its own sandbox instead of trying to juggle multiple projects (each with different dependencies) on your system's version of Python. The guide here covers one way to handle multiple Python versions and Python environments on your own (i.e., without a package manager like conda). See the Using the workflow section to view the end result.


h/t @sharkinsspatial for linking me to the perfect cartoon

@stormasm
stormasm / 20k_club.nu
Created July 29, 2022 23:31
20k-club
# notes
# a .mailmap file needs to be in the root of each repo to aggregate users with multiple email addresses
# we could add users if we need to map multiple email addresses to a single user
# and commit the mailmap file to the repo if we wanted to. Format of the mailmap file is at the
# end of the script.
#
# 1. git clone every repo in the list
# 2. setup folder_prefix to match your system
# 3. setup the proper slash by system (TODO make the slash system agnostic)
# 4. setup the output folder to the path you want it in
@stormasm
stormasm / bytes_and_bits.md
Created July 1, 2022 19:30 — forked from fdncred/bytes_and_bits.md
new nushell commands

Tabled

GitHub repo

Examples

basic

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
@stormasm
stormasm / gist:9115d76b0b5dbff86514c7c07815d7d1
Created April 20, 2022 15:45 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@stormasm
stormasm / desktop.nu
Created February 20, 2022 16:56 — forked from fdncred/defs.nu
engine-q config
# let config = {
# filesize_metric: $false
# table_mode: rounded
# use_ls_colors: $true
# }
let-env HOME = "C:\Users\us991808"
let-env LANG = "en_US.UTF-8"
let-env LESS = "-FRX"
let-env PAGER = "less"
@stormasm
stormasm / nu-vs-eq.md
Created January 14, 2022 17:47
engine-q-scripts
message e-q resolution
command [alias] exists but parameter [equals] is missing in eq equals is not a parameter in engine-q
command [alias] exists but parameter [rest] is missing in eq reset renamed to initial_value
command [all?] exists but parameter [condition] is missing in eq condition renamed to predicate
command [ansi gradient] exists but parameter [rest] is missing in eq rest renamed to column path (* space in param name)
command [ansi strip] exists but parameter [rest] is missing in eq rest renamed to column path (* space in p