Skip to content

Instantly share code, notes, and snippets.

View murwa's full-sized avatar
💭
Veni vidi vici

Peter Murwa murwa

💭
Veni vidi vici
  • ZyroAfrica
  • Kasarani, Kenya
  • X @_mxgel
View GitHub Profile
@murwa
murwa / mdxUtil.js
Created April 12, 2016 12:46 — forked from Todd-Werelius/mdxUtil.js
Angular Material Directive to Access Theme Colors
(function() {
angular.module('mdxUtil', ['ngMaterial'])
.directive('mdxPaintFg',function(mdx) {
"use strict";
return {
restrict : 'A',
link : function(scope, element, attributes) {
setRGB(element,'color',mdx.mdxThemeColors,attributes.mdxPaintFg,'mdx-paint-fg');
}
#
# Wide-open CORS config for nginx
#
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
#