Skip to content

Instantly share code, notes, and snippets.

View bathos's full-sized avatar
⚱️
gimme elixir!

Darien Maillet Valentine bathos

⚱️
gimme elixir!
View GitHub Profile
@bathos
bathos / ng-material-color-classes.js
Last active March 17, 2016 05:32
md color classes (.text & .background w/ contrast text)
module.run(($mdColorPalette, $mdTheming) => {
const { THEMES } = $mdTheming;
const rules = [];
for (const themeName in THEMES) {
const { colors } = THEMES[themeName];
const themeCls = themeName == 'default' ? '' : `.md-${ themeName }-theme`;
@bathos
bathos / decor8.js
Last active September 21, 2022 18:03
decorators
// CLASS DECORATORS ////////////////////////////////////////////////////////////
/*
These can be thrown on to augment the class with the static properties method
and $arguments, which makes it possible to generically attach them to an
angular module without the angular module "directory" file needing to know any
particulars about the individual providers:
import hnAuth from './services/hn-auth';