Skip to content

Instantly share code, notes, and snippets.

View sandalsoft's full-sized avatar
🏖️
Working from the beach

Eric Nelson sandalsoft

🏖️
Working from the beach
View GitHub Profile

Keybase proof

I hereby claim:

  • I am sandalsoft on github.
  • I am eln (https://keybase.io/eln) on keybase.
  • I have a public key ASCIalvujwy4vW8A4zJMs5EaFD4NGPWbjUG9YJGhTLkJ0Ao

To claim this, I am signing this object:

PROMPT='%{$fg[cyan]%}%n%{$reset_color%} on %{$fg[red]%}%M%{$reset_color%} in %{$fg[cyan]%}%~%b%{$reset_color%}$(git_time_since_commit)$(check_git_prompt_info)
$ '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[white]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%})"
# Text to display if the branch is dirty
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$reset_color%}"
# Text to display if the branch is clean
@sandalsoft
sandalsoft / .gitignore
Last active September 24, 2025 15:13
my node gitignore
# UPDATED 9/24/2025
# DAMN YOU MACOS FINDER 🖕
.DS_Store
.env
# Always check-in examples
!.env.example
!.env_example
@sandalsoft
sandalsoft / .babelrc
Last active April 6, 2018 03:29
babelrc
{
"presets": [
[
"env",
{
"targets": {
"node": "current"
}
}
]
@sandalsoft
sandalsoft / convert.sh
Created March 6, 2018 03:49 — forked from aminmarashi/convert.sh
Convert require to import using prettier
#!/bin/bash
find . -name '*.js' -exec gsed -i "s/const \(.*\) = require(\(.*\))\.\(.*\);/import { \3 as \1 } from \2;/g" '{}' ';'
prettier-eslint --write '**/*.js'
find . -name '*.js' -exec gsed -i "s/const \(.*\) = require(\(.*\));/import \1 from \2;/g" '{}' ';'
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
{
"transform": {
"^.+\\.jsx?$": "babel-jest"
},
"testPathIgnorePatterns": [
"/node_modules/",
"/node_modules_bak/",
"/test/",
"/dist/"
],
# Don't lint testfile because too many red squiggles.
# Not an ideal situation, meh
# **/*.test.js
#
##
# This is created by cat .gitgnore > .exlintignore
# It might be out of date
##
#
Copyright (c) 2018 Eric Nelson
All rights reserved
{
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"arrowFunctions": true,
"experimentalObjectRestSpread": true
}
},