Skip to content

Instantly share code, notes, and snippets.

View noelworden's full-sized avatar

Noel Worden noelworden

View GitHub Profile
@noelworden
noelworden / Standardized_Commits.md
Last active August 24, 2023 08:45
How to standardize git commit messages, #helpers
  • Why standardize messages? Its clean. Easy to see what changed and when. As an up-and-coming developer, my repos will probably be potential employers first impressions of me. Clean code (proper indentions/spacing etc) and formatted commit messages help show that I care about my code.

  • The workflow is to create a .txt file as a template, and configure git to use that file as the default message when commiting.

  • The key is the character count. Note the dashed lines representing 50 characters for the summary, and 72 for the description.

####implimentation####

  • cd ~ #to confirm in the home directory

Moved and updating as README of the config file repo

  • Use entire Home Directory as Git Repo

    • cd ~
    • git init
  • Push all files to .gitignore

    • echo "*" > .gitignore
  • Check repo status, nothing should be tracked

  • git status

@noelworden
noelworden / Forehead_into_Keyboard_Solutions.md
Last active August 8, 2020 22:38
'little' things to make life easier, #helpers
@noelworden
noelworden / Machine_Setup.md
Last active August 8, 2020 22:40
Setting up work machine from scratch, #helpers

Install

  • Setup an installer with flash drive
  • Get updates to get to most current OS

System Prefs

  • General
    • Appearance
      • Graphite
  • Default Browser

mixins.scss

  $breakpoints: (
  'xs' : ( min-width:  $break-xs  ),
  'sm' : ( min-width:  $break-sm  ),
  'md' : ( min-width:  $break-md  ),
  'lg' : ( min-width:  $break-lg  ),
  'xl' : ( min-width:  $break-xl  ),
'xxl': ( min-width: $break-xxl )
@noelworden
noelworden / Elixiring.md
Last active August 24, 2020 21:09
#helpers

Pineapple Payments

BI Testing Query

select
	fp.period_start_date,
	fbu.business_unit_name,
	fv.vendor_name,
	sum(revenue) as revenue,
	sum(fees) as fees,
@noelworden
noelworden / SQL-to-Ecto.md
Last active August 8, 2020 22:46
#helpers

Overview of all queries

SQL

WITH latest_imports AS (
      SELECT
        i.*
      FROM (
        SELECT
          *,
@noelworden
noelworden / Dockering.md
Last active August 8, 2020 22:46
#helpers

Whats what

  • Dockerfile builds an image
  • A container is started from that image
  • Multiple containers can be started and running simultaneously from a single image

Frequently used commands

  • enter a docker bash session
    • use docker ps -a to see all containers
    • get NAME of desired container
  • enter the bash session
defmodule Finance.SourceFiles.Data.Screen do
import Ecto.Changeset
def validate_decimal(changeset, fields) do
%{errors: errors} = changeset
fields_not_decimal =
for field <- fields,
not_decimal?(changeset, field),
do: field
rename(
table("raw_example_product_detail"),
:first_field_2,
to: :first_field
)
rename(
table("raw_example_product_detail"),
:second_field_2,
to: :second_field