Skip to content

Instantly share code, notes, and snippets.

View schontz's full-sized avatar

David Schontzler schontz

  • Los Angeles, CA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am schontz on github.
  • I am schontz (https://keybase.io/schontz) on keybase.
  • I have a public key ASD50oAwyGzV2RUX2sV2dThCfZ4XrMoWC-idfBaxXG91mgo

To claim this, I am signing this object:

function Evented() {
var events = {};
this.on = function (name, callback) {
if (!events[name]) events[name] = [];
var index = events[name].push(callback);
return { remove: function () { events[name].splice(index - 1, 1); }
}
this.emit = function (name, event) {
@schontz
schontz / material-components-web.css
Created June 19, 2018 19:02
Change material names to work better with JS/TS imports
/*!
Material Components for the Web
Copyright (c) 2018 Google Inc.
License: Apache-2.0
*/
@-webkit-keyframes mdc-ripple-fg-radius-in {
from {
-webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
-webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);
@schontz
schontz / gist:5733028
Created June 7, 2013 23:05
Trying to find out where `Spree::Variant` call is coming from
Spree::Variant Load (0.3ms) SELECT `spree_variants`.* FROM `spree_variants` WHERE `spree_variants`.`id` = 6 LIMIT 1
TRACE: SELECT `spree_variants`.* FROM `spree_variants` WHERE `spree_variants`.`id` = 6 LIMIT 1
@schontz
schontz / Gemfile
Last active December 17, 2015 19:29
source 'https://rubygems.org'
gem 'rails', '3.2.13'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'