Skip to content

Instantly share code, notes, and snippets.

View bjanderson's full-sized avatar

BJ Anderson bjanderson

View GitHub Profile
# Add files here to ignore them from prettier formatting
/dist
/coverage
.angular
@bjanderson
bjanderson / .prettierrc
Last active May 25, 2024 11:28
my prettierrc
{
"arrowParens": "always",
"bracketSpacing": true,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"jsxBracketSameLine": true,
"jsxSingleQuote": true,
"quoteProps": "as-needed",
"printWidth": 100,
"proseWrap": "preserve",
@bjanderson
bjanderson / .editorconfig
Created September 9, 2022 20:28
my editorconfig
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
quote_type = single
@bjanderson
bjanderson / .npmrc
Last active May 25, 2024 11:30
base npmrc
fund=false
package-lock=false
save=true
save-exact=true
@bjanderson:registry=https://npm.pkg.github.com
@bjanderson
bjanderson / new-python-project.py
Created April 28, 2021 08:20
A script to set up a new python project.
import os
import sys
import urllib.request
"""
Put this file in the folder that you want to create a new project in and run it with 'python new-python-project.py <project-name>'
"""
def create_file(text, filename):
try:
@bjanderson
bjanderson / LICENSE
Last active November 1, 2025 17:54
ISC License
Copyright <YEAR> <OWNER>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
#!/bin/bash
# Author: Bartley Anderson (http://bjspage.com)
# License: MIT
# Github: https://gist.github.com/bjanderson/e8609cd036dc8f1635982442e3f0132c
# Based on the instructions from: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
ACTION='install'
OS='ubuntu16'
PIN=0