Skip to content

Instantly share code, notes, and snippets.

View briangonzalez's full-sized avatar
🏠
🚚

Brian Gonzalez briangonzalez

🏠
🚚
View GitHub Profile
App.IconSprite = DS.Model.extend({
document: DS.attr(),
dataForIcon: function(name) {
console.log('Icon:', name)
}
});
/* Put your CSS here */
html, body {
margin: 20px;
}
@briangonzalez
briangonzalez / untitled
Created July 16, 2015 14:33
snowplow-transaction-curl.txt
curl 'https://analytics.dollarshaveclub.com/i?e=tr&tr_id=335340521252186&tr_af=Dollar%20Shave%20Club&tr_tt=6.54&tr_tx=transactionTax&tr_sh=transactionShipping&tv=js-2.1.1&tna=cf&aid=production&p=web&tz=America%2FLos_Angeles&lang=en-US&cs=UTF-8&f_pdf=1&f_qt=0&f_realp=0&f_wma=0&f_dir=0&f_fla=1&f_java=1&f_gears=0&f_ag=0&res=1920x1200&cd=24&cookie=1&eid=5f4288a4-946a-4416-9be2-a1b68d00249e&dtm=1437057029566&vp=770x1031&ds=770x1565&vid=38&duid=0525b3fa516bd813&fp=3857977735&url=https%3A%2F%2Fwww.dollarshaveclub.com%2Fcheckout%2Ffinish-up'
-H 'Pragma: no-cache'
-H 'Accept-Encoding: gzip, deflate, sdch'
-H 'Accept-Language: en-US,en;q=0.8'
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.6 Safari/537.36'
-H 'Accept: image/webp,image/*,*/*;q=0.8'
-H 'Referer: https://www.dollarshaveclub.com/checkout/complete'
-H 'Cookie: __lc.visitor_id.2148461=S1391130147.cc1730eace; rsci_vid=26b80f99-9465-65b0-fa73-2b63fb71fc7d; __ssid=6757a2e1-c643-4f41
@briangonzalez
briangonzalez / to-and-from.sass
Created April 30, 2016 17:10
Simple SASS Breakpoints
@mixin from($bp)
@media only screen and (min-width: $bp + 1px)
@content
@mixin to($bp)
@media only screen and (max-width: $bp)
@content
@briangonzalez
briangonzalez / dark-title-bar.sh
Last active September 8, 2016 16:04
Atom - Dark Title Bar
# A prettier Atom via PR #10208.
# https://github.com/atom/atom/pull/10208
# Quit then remove.
osascript -e 'quit app "Atom"'
rm -rf /Applications/Atom.app
# Install, build, then open.
git clone -b pb-hidden-inset-1.8 [email protected]:briangonzalez/atom.git
cd atom
@briangonzalez
briangonzalez / circle.yml
Created August 8, 2016 14:28
Chrome + Circle
---
machine:
node:
version: 5.11.1
checkout:
post:
- git fetch origin
- git branch --force lint-ci-release origin/release
import Ember from 'ember';
export default Ember.Component.extend({
classNameBindings: [ 'loaded:no-blur:blur' ],
loaded: false,
src: Ember.computed(function () {
return `${this.get('rawSrc')}?w=10`;
@briangonzalez
briangonzalez / about.page.md
Last active March 11, 2017 02:10
eggplanet.io

eggplanet is an LA-based development shop started by two of the early engineers of Dollar Shave Club. We have experience building and optimizing apps as well helping teams grow and become more efficient.

@briangonzalez
briangonzalez / _briangonzalez.org
Last active January 7, 2020 15:51
briangonzalez.org
# This file is blank, but here in order to have more clear view of the gist from within github.
//
// A user has purchased products from Dollar Shave Club,
// noted below in the `purchased` array. When these products
// came out of our database, they were unsorted.
//
// Write the method below, `sortProducts`, to obtain a sorted
// array of the items purchased.
//
const sortedReference = [