Skip to content

Instantly share code, notes, and snippets.


Aspen James AspenJames

View GitHub Profile
AspenJames / main.go
Last active Apr 28, 2022
Reproduce c-bata/go-prompt issue #253
View main.go
package main
import (
func completer(d prompt.Document) []prompt.Suggest {
s := []prompt.Suggest{
{Text: "users", Description: "Store the username and age"},
#!/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 / relations_shared_examples.rb
Last active Feb 28, 2020
RSpec shared examples for common rails relationships
View relations_shared_examples.rb
# 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 }
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++) {

Keybase proof

I hereby claim:

  • I am aspenjames on github.
  • I am aspenjames ( on keybase.
  • I have a public key ASCTogSy44LT7-TqILILT1AwSoK2W4sEi_HL4qJQAFanHgo

To claim this, I am signing this object:

AspenJames /
Last active Aug 27, 2018
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