Skip to content

Instantly share code, notes, and snippets.

View AspenJames's full-sized avatar

Aspen James AspenJames

View GitHub Profile
@AspenJames
AspenJames / Flatiron_seattle_coc.md
Last active August 27, 2018 20:39
Flatiron Seattle Code of Conduct

Code of Conduct

Flatiron School is dedicated to providing a harassment-free experience for everyone. We do not tolerate harassment of participants in any form. All Organizers, members, and their visitors are subject to this Code of Conduct.

This code of conduct applies to all Flatiron School spaces, online and off, including but not limited to the following:

  • Meetups
@AspenJames
AspenJames / keybase.md
Created January 8, 2019 17:07
Keybase identity

Keybase proof

I hereby claim:

  • I am aspenjames on github.
  • I am aspenjames (https://keybase.io/aspenjames) on keybase.
  • I have a public key ASCTogSy44LT7-TqILILT1AwSoK2W4sEi_HL4qJQAFanHgo

To claim this, I am signing this object:

function makeRangeAbsoluteReference() {
// This grabs the currently selected cells,
// applying _makeAbsolute() to each
var spreadsheet = SpreadsheetApp.getActive();
var range = spreadsheet.getActiveRange();
var numRows = range.getNumRows();
var numCols = range.getNumColumns();
for (var i = 1; i <= numRows; i++) {
for (var j = 1; j <= numCols; j++) {
@AspenJames
AspenJames / relations_shared_examples.rb
Last active February 28, 2020 07:54
RSpec shared examples for common rails relationships
# This is a way to test boilerplate Rails relationships with a clean syntax in the model spec files:
# Relies on factory_bot_rails and factories defined for each model
# context "Relationships:" do
# before :each do
# @coffee = create(:coffee)
# end
# describe "Roaster:" do
# it_behaves_like "a belongs_to relationship" do
# let(:described) { @coffee }
#!/usr/bin/env bash
## | Color variables | ##
export BLUE='\033[1;34m'
export blue='\033[0;34m'
export CYAN='\033[1;36m'
export cyan='\033[0;36m'
export GREEN='\033[1;32m'
export green='\033[0;32m'
export PURPLE='\033[1;35m'
@AspenJames
AspenJames / main.go
Last active April 28, 2022 06:42
Reproduce c-bata/go-prompt issue #253
package main
import (
"fmt"
"github.com/c-bata/go-prompt"
)
func completer(d prompt.Document) []prompt.Suggest {
s := []prompt.Suggest{
{Text: "users", Description: "Store the username and age"},