Skip to content

Instantly share code, notes, and snippets.

View lsaville's full-sized avatar

Lee Saville lsaville

  • Denver, CO
View GitHub Profile

Record Endpoints

  • GET /api/v1/merchants
  • GET /api/v1/merchants/:id
  • GET /api/v1/merchants/find?parameters
    • id: Search based on primary key
    • name: Search based on the name attribute
    • created_at: Search based on the created_at timestamp
    • updated_at: Search based on the updated_at timestamp
  • GET /api/v1/merchants/find_all?parameters
  • Same parameters as above.

I have a more complicated system:

  • materials one large ball jar three smaller jars one plastic strainer a bowl (to do the sifting) a chopstick (to do the stirring) a rag (to cover the big jar)
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
set runtimepath^=~/.vim/bundle/ctrlp.vim
call vundle#begin()
" " let Vundle manage Vundle, required
" "
Plugin 'VundleVim/Vundle.vim'

2023-01-10

Changing to iso 1806 style dates cuz who needs anything else amiright?

DISTINCT ON

DISTINCT ON with ORDER BY acts acts like window functions with ranking/row_number. https://www.youtube.com/watch?v=XuGxGP8quMQ

psql get result file workaround

-- Set the variable "query" to the contents of the sql file
\set query `cat my_rad_query.sql`
#!/bin/bash
echo "Hello, who are you?"
read $REPLY
echo "Can I ask you some questions?"
read $REPLY

Snake River to Lake One

Map

Interactive Map (the green line shows this route)

Follow this link, then to display additional data such as campsites and photos, click “Layers” in the upper left corner of the map. To display the route on satellite imagery or a different background, click “Background” in the upper left of the map. Zoom in and out using the plus and minus buttons in the upper left.

Details

Destroy All Software Screencasts

Testing

This season covers testing tools and how to write good tests. We switch between those topics frequently: first build a testing tool (like a test runner), then use it to talk about how to write good tests, then repeat!

  • 1 Test Runner From Scratch: An RSpec-style test runner - 10 min
  • 2 Assertions Large and Small: Asserting is surprisingly subtle. - 12 min
  • 3 Implementing Assertion Syntax: RSpec-style expect and raise_error. - 12 min
  • 4 A Motivating Example Test: A test to guide our runner design. - 11 min