Skip to content

Instantly share code, notes, and snippets.

Avatar

David Schontzler schontz

  • Los Angeles, CA
View GitHub Profile
View keybase.md

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:

View Evented.js
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 Jun 19, 2018
Change material names to work better with JS/TS imports
View material-components-web.css
/*!
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 Jun 7, 2013
Trying to find out where `Spree::Variant` call is coming from
View gist:5733028
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
View Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.13'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'