Skip to content

Instantly share code, notes, and snippets.

View gmacdougall's full-sized avatar

Gregor MacDougall gmacdougall

  • Toronto, Ontario, Canada
View GitHub Profile
SELECT DISTINCT tommy_john_filter_values.id,
tommy_john_filter_values.name,
spree_variants.id
FROM tommy_john_filter_values
INNER JOIN tommy_john_filter_values_colors
ON (tommy_john_filter_values_colors.filter_value_id = tommy_john_filter_values.id)
INNER JOIN spree_variants
ON (spree_variants.color_id = tommy_john_filter_values_colors.color_id)
WHERE spree_variants.product_id = 98683658;
var React = require('react');
var WeatherForm = require('WeatherForm');
var WeatherMessage = require('WeatherMessage');
class Weather extends React.Component {
constructor(props) {
super(props);
this.state = {
location: 'Miami',
temp: 88
10-day-laundry-skipper-boxer-brief-set 10DLASKIP4L Black/Mykonos Blue/Navy
10-day-laundry-skipper-boxer-brief-set 10DLASKIP4M Black/Mykonos Blue/Navy
10-day-laundry-skipper-boxer-brief-set 10DLASKIP4S Black/Mykonos Blue/Navy
10-day-laundry-skipper-boxer-brief-set 10DLASKIP4XL Black/Mykonos Blue/Navy
10-day-laundry-skipper-boxer-brief-set 10DLASKIP4XXL Black/Mykonos Blue/Navy
10-day-laundry-skipper-trunk-set 10DLASKIP6L Black/Mykonos Blue/Navy
10-day-laundry-skipper-trunk-set 10DLASKIP6M Black/Mykonos Blue/Navy
10-day-laundry-skipper-trunk-set 10DLASKIP6S Black/Mykonos Blue/Navy
10-day-laundry-skipper-trunk-set 10DLASKIP6XL Black/Mykonos Blue/Navy
10-day-laundry-skipper-trunk-set 10DLASKIP6XXL Black/Mykonos Blue/Navy
10-day-laundry-skipper-boxer-brief-set 10DLASKIP4
10-day-laundry-skipper-boxer-brief-set 10DLASKIP4L
10-day-laundry-skipper-boxer-brief-set 10DLASKIP4M
10-day-laundry-skipper-boxer-brief-set 10DLASKIP4S
10-day-laundry-skipper-boxer-brief-set 10DLASKIP4XL
10-day-laundry-skipper-boxer-brief-set 10DLASKIP4XXL
10-day-laundry-skipper-trunk-set 10DLASKIP6
10-day-laundry-skipper-trunk-set 10DLASKIP6L
10-day-laundry-skipper-trunk-set 10DLASKIP6M
10-day-laundry-skipper-trunk-set 10DLASKIP6S
https://www.tommyjohn.com/admin/products/cc-armory-trunk/variants/1069130378/edit
https://www.tommyjohn.com/admin/products/cc-armory-trunk/variants/1069130377/edit
https://www.tommyjohn.com/admin/products/cc-armory-trunk/variants/1069130376/edit
https://www.tommyjohn.com/admin/products/cc-armory-trunk/variants/1069130379/edit
https://www.tommyjohn.com/admin/products/cc-armory-trunk/variants/1069130380/edit
https://www.tommyjohn.com/admin/products/cc-armory-boxer-brief/variants/1069130383/edit
https://www.tommyjohn.com/admin/products/cc-armory-boxer-brief/variants/1069130382/edit
https://www.tommyjohn.com/admin/products/cc-armory-boxer-brief/variants/1069130381/edit
https://www.tommyjohn.com/admin/products/cc-armory-boxer-brief/variants/1069130384/edit
https://www.tommyjohn.com/admin/products/cc-armory-boxer-brief/variants/1069130385/edit
FROM ruby:2.2.7
ENV N_VERSION 2.1.7
ENV NODE_VERSION 8.1.2
ENV PHANTOMJS_VERSION 2.1.1
ENV YARN_VERSION 0.24.6
# Gems with native extensions
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential fontconfig curl
class PopulateBundleManifests < ActiveRecord::Migration
def up
e = entries.map { |entry| entry.split(' ') }
results = manifests.map do |line|
id, parent_id = line.split(' ')
[
parent_id,
e.select { |entry| entry.first === id }.map { |entry| entry.last}
]
end
require 'aws-sdk'
require 'timeout'
def wait_for_completion(opsworks, result)
status = 'running'
Timeout::timeout(300) do
while (status == 'running') do
sleep(5)
response = opsworks.describe_deployments(
deployment_ids: [result.deployment_id]
2017-03-30 08:00:56 gmacdougall Good day. Did you have time for the SolidusConf blog interview now?
2017-03-30 08:14:17 alexstoick Hey
2017-03-30 08:14:25 alexstoick How much time you think it’s gonna take? :smile:
2017-03-30 08:14:32 alexstoick i have about 1h
2017-03-30 08:14:46 gmacdougall Most of the previous ones have been 20-30 minutes
2017-03-30 08:14:50 alexstoick ok
2017-03-30 08:14:53 gmacdougall It depends on how fast you can type :)
2017-03-30 08:14:56 alexstoick yep
2017-03-30 08:14:58 alexstoick :smile:
2017-03-30 08:15:08 alexstoick pretty confident in my typing skills :smile: