Skip to content

Instantly share code, notes, and snippets.

View andrewhummus's full-sized avatar
😏

Andrew N andrewhummus

😏
View GitHub Profile
### Keybase proof
I hereby claim:
* I am andrewnijmeh on github.
* I am andrewnijmeh (https://keybase.io/andrewnijmeh) on keybase.
* I have a public key ASB_ikfJsL2RhJaX8uuW1Feg9edDT8k4-Vxi5hyncY26Mwo
To claim this, I am signing this object:
@andrewhummus
andrewhummus / .vimrc
Created August 23, 2021 20:11
My vimrc config for working with python, and typescript
syntax on
set noerrorbells
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set nu
set nowrap
set smartcase
@andrewhummus
andrewhummus / init.vim
Last active September 4, 2022 16:03
config for nvim
" <essentials>
set nocompatible " don't try to be compatible with V
filetype plugin on
lua require('plugins')
set relativenumber
set termguicolors
set expandtab
set hidden
set tabstop=2
set softtabstop=2
@andrewhummus
andrewhummus / coc-settings.json
Created September 7, 2021 01:27
modified coc settings
{
"codeLens.enable": true,
"coc.preferences.extensionUpdateCheck": "daily",
"coc.preferences.formatOnType": true,
"coc.preferences.willSaveHandlerTimeout": 1000,
"coc.preferences.formatOnSaveFiletypes": [
"c",
"python",
"rust",
"markdown",
@andrewhummus
andrewhummus / .vimrc
Created September 9, 2021 23:30
Simple monochrome vimrc for working with rust/python
syntax on
set noerrorbells
set tabstop=4 softtabstop=4
set shiftwidth=4
set expandtab
set smartindent
set nu
set nowrap
set smartcase
@andrewhummus
andrewhummus / read.md
Created October 18, 2021 22:39
float 64 vs float 32

float32 is a 32 bit number - float64 uses 64 bits.

That means that float64’s take up twice as much memory - and doing operations on them may be a lot slower in some machine architectures.

However, float64’s can represent numbers much more accurately than 32 bit floats.

They also allow much larger numbers to be stored.

For your Python-Numpy project I'm sure you know the input variables and their nature.

"https://cache.nixos.org"
"https://cache.dhall-lang.org"
"https://static-haskell-nix.cachix.org"
"https://nix-tools.cachix.org"
"https://amarrella.cachix.org"
"https://orther.cachix.org"
@andrewhummus
andrewhummus / hideiconsondesktop
Created November 22, 2021 17:16
hide file icons on desktop in macos.
defaults write com.apple.finder CreateDesktop -bool false
killall Finder
@andrewhummus
andrewhummus / pooling.txt
Created January 2, 2022 23:44
Simple db pooling explained in small graph
+---------+
| |
| Clients |
+---------+ |
| |-+ (1) +------+ (3) +----------+
| Clients | ===#===> | Open | =======> | RealOpen |
| | | +------+ +----------+
+---------+ | ^
| | (2)
| /------\
@andrewhummus
andrewhummus / Brewfile
Created January 5, 2022 21:02
brew dump
tap "artginzburg/tap"
tap "cmacrae/formulae"
tap "discoteq/discoteq"
tap "elastic/tap"
tap "ethereum/ethereum"
tap "felixkratz/formulae"
tap "gleich/tap"
tap "hackclub/tap"
tap "homebrew/bundle"
tap "homebrew/cask"