Skip to content

Instantly share code, notes, and snippets.

View jGRUBBS's full-sized avatar

Justin Grubbs jGRUBBS

  • King & Partners
  • St. Simons Island, GA
View GitHub Profile
@jGRUBBS
jGRUBBS / UYH-tech-stack-answers.md
Last active February 28, 2019 20:03
Kate Spade: Unlock Your Heart - Tech Stack Questions & Answers

We have developed the Kate Spade Unlock Your Heart experience in two main parts:

  • a static site generated by a Vue.js app
  • a serverless lambda app (hosted on now) that generates and uploads a share image and share url

The two apps live in the same git repository hosted on GitHub here: https://github.com/kingandpartners/unlock-your-heart

The Vue.js app generates and deploys the static site that lives at https://katespadeunlockyourheart.com.

  • we utilized Vue.js' Single File Components to architect the primary UI/UX
  • inside the .vue files we use SCSS
@jGRUBBS
jGRUBBS / README.md
Last active September 4, 2017 05:05 — forked from bullshit/README.md
LIRC patch instruction/how-to for USB Infrared Toy from Dangerous Prototypes

LIRC patch instruction/how-to for USB Infrared Toy from Dangerous Prototypes

This is a instruction to patch the usb infrared toy driver into lirc sources. Most of the work is done by Peter Kooiman

Requirements

@jGRUBBS
jGRUBBS / tool.rb
Created March 28, 2017 21:44
Custom Harvest Report
require "bundler/setup"
require "harvest_automatic"
require "active_support/core_ext/numeric/time"
require "active_support/core_ext/array/grouping"
require "awesome_print"
def days_during_time_period(starting_date, ending_date)
date = starting_date
dates = []
while date < ending_date do
@jGRUBBS
jGRUBBS / install-ubuntu-on-intel-nuc.md
Last active August 4, 2024 17:04
Intel NUC Ubuntu Install
@jGRUBBS
jGRUBBS / intersect_with_matcher.rb
Created May 6, 2016 20:18 — forked from jherdman/intersect_with_matcher.rb
An RSpec matcher to check for intersection between two enumerables
Spec::Matchers.define :intersect_with do |challenge_range|
# Check to see if any elements exist in the intersection
match do |current_range|
[current_range.to_a & challenge_range.to_a].flatten.any?
end
failure_message_for_should do |current_range|
"#{current_range.inspect} doesn't overlap with #{challenge_range.inspect}"
end
@jGRUBBS
jGRUBBS / index.haml
Created September 10, 2014 19:41
initialize scripts pragmatically
%div{ data: { init: 'somescript' } }
@jGRUBBS
jGRUBBS / gist:7783625
Last active December 30, 2015 05:39
HACK to fix messed up characters in existing images that drupal can't seem to find. Magic happens on lines 868 – 881...
<?php
/**
* @file
* Exposes global functionality for creating image styles.
*/
/**
* Image style constant for user presets in the database.
*/
@jGRUBBS
jGRUBBS / gist:6468300
Last active May 6, 2019 01:47
Ruby Warrior
class Player
attr_accessor :warrior, :health, :direction
def play_turn(warrior)
@warrior = warrior
@turn ||= 0
check_direction
determine_action
@health = warrior.health