Skip to content

Instantly share code, notes, and snippets.

View booherbg's full-sized avatar

Blaine Booher booherbg

View GitHub Profile
@booherbg
booherbg / rails-apartment-notes.md
Last active August 29, 2015 14:26
Adding apartment to our api project
  1. add apartment to gemfile
  2. run initializer to generate config/apartment.rb
  3. Create our Event model (which maps to schemas)
  4. before_validate: create self.schema that uses .parameterize.underscore from self.name on event model
  5. after_create: create new apartment tenant on the event model
  6. Set up the config to ignore a few of our models that are public
  7. hard code the config to select a single event schema, for now
  8. migrate over all the data:
@booherbg
booherbg / gist:cc09bb8bc66fae56f60e
Last active June 27, 2017 15:06
Getting started with Tensor Flow (Installation)

Notes on upgrading to Elasticsearch 5.0.1 from 2.4

First get the latest ES (2.4):

# apt-get update
# apt-get install elasticsearch

After update, had to reinstall license and marvel
# bin/plugin remove license

Jun 25 2017

Interested in becoming friendly with local crows after reading stories and first hand accounts. Obtained peanuts. Later, found grackles, but not crows. They're smaller and travel in larger flocks. Were not very interested in peanuts. They have irridescent blue heads. Curious if the small blue glass left in my garden is from the crows?

Squirrels like peanuts too. I threw a peanut towards an squirrel and it bounced off him. It did not phase him. He ate the peanut.

Jun 27 2017

@booherbg
booherbg / for-loops.md
Last active April 22, 2020 20:42
Simple For Loops

Week 3 Stretch Goal Tips

In general there are two types of problems to solve:

  1. "Calculate some value based on all the numbers in the array"
  2. "Find a number in the array and stop once you've found it"

In pretty much all cases, all you need to do is have a way of looping through the array of numbers, keeping track of what you have done so far, and reporting the result at the end.

@booherbg
booherbg / arrow-functions.md
Last active May 27, 2020 15:09
Arrow Functions

Arrow Function Intro

function name(me) {
  console.log('my name is', me);
}

const name = function(me) {
  console.log('my name is', me);
}
@booherbg
booherbg / files.md
Last active June 17, 2020 00:52
EDA HTML/CSS Workshop Code

index.html:

<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>Blaine's World</title>
    <link rel="stylesheet" href="./style.css">
  </head>
  <body>
@booherbg
booherbg / movie-grading.md
Created June 29, 2020 15:07
grading-result

Project Page

  • Client side route that displays projects that are stored in the database
  • Each project should conditionally render a name, description, thumbnail, website, date complete and a tag. Many of the fields are optional, only show properties that aren't null.
  • Include a link to GitHub that opens in a new window
  • Add your name at the top of the page
  • Use Sagas for API requests to your server

Admin Page

# Weekend 12 Challenge - Redux Saga Movies

## Movies Page

- [ ] Client side View that displays a list of movies (image, title, description)
- [ ] View has ability to click on a single movie
- [ ] Clicking on single movie goes to movie details view at `/details`

## Details Page
@booherbg
booherbg / dotnet-notes.md
Last active March 9, 2022 21:14
Up and running with dotnet

Notes from early experiments with dotnet on Mac OSX

Installation: dotnet and VS Code

Installation was amazingly easy. < 2 minutes and dotnet is available from the command line.

Don't forget to install the c# plugin for VS Code (powered by omnisharp).

Omnisharp