Skip to content

Instantly share code, notes, and snippets.

View zakmac's full-sized avatar

Zak MacDonald zakmac

View GitHub Profile
@zakmac
zakmac / colorize-tomcat-logs.sh
Last active November 24, 2023 20:43
Add color to your Catalina output logs for [info, warn, error, severe, startup]
#!/bin/bash
# ABOUT
# Add color to your Catalina output logs for [info, warn, error, severe, startup]
# - This isn't the smartest, so if there is a match for any of the listed statuses in an
# output you can bet it'll be colorized
# USAGE
# catalina run 2>&1 | bash ~/colorize-tomcat-logs.sh
@zakmac
zakmac / _lt-ie9-foundation-grid.scss
Last active August 29, 2015 14:23 — forked from hatefulcrawdad/ie8-grid-foundation-4.css
A SASS 3.2 compatible fix for the Foundation grid system in IE 7/8
@charset "UTF-8";
/**
IE 7/8 FIX FOR ZURB FOUNDATION 4 GRID
About: A SASS 3.2 compatible fix for the Foundation grid system in IE 7/8
Author: Zak MacDonald <http://github.com/zakmac>
Origin: https://gist.github.com/hatefulcrawdad/5068210
Fork: https://gist.github.com/zakmac/66f910ddfa3b5cc6b404
@zakmac
zakmac / multiple-action-triggers.js
Last active October 2, 2017 14:56
An Ember.js mixin that enables firing an action using multiple trigger events
/**
*
* About: Fire an action in Ember.js using multiple triggers
* Author: Zak MacDonald <http://github.com/zakmac>
* JSBin: http://jsbin.com/tisopu/edit?html,js,output
*
*/
/**
* MultipleActionTriggersMixin
@zakmac
zakmac / _fudge-decimals-function.scss
Last active August 29, 2015 14:24
SASS function to round a decimal to n places (n being < 6)
@charset "UTF-8";
/**
SASS NUMBER FUDGING FUNCTION
About: A SASS 3.2 compatible function that rounds a number to an accuracy of n decimal places
Author: Zak MacDonald <http://github.com/zakmac>
JSBin: http://jsbin.com/foreda/edit?css
{
"auto_complete_delay": 250,
"binary_file_patterns":
[
"bower_components/*",
"node_modules/*",
"intermediate/*",
"publish/*",
"tmp/*",
"*.jpg",
@zakmac
zakmac / Monokai-Zak.tmTheme
Created July 10, 2015 05:20
Based on Monokai bright, modified to increase strength of colors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- Created by: Steve Lacy slacy.me -->
<!-- Modified by: Zak MacDonald zakmac.com -->
<!-- Based on Monokai bright, modified to increase strength of colors -->
<plist version="1.0">
<dict>
@zakmac
zakmac / ember-cli-build.js
Last active August 29, 2015 14:24
Demonstrates adding third party styles/scripts to an ember-cli application
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var environment = require('./config/environment');
var Funnel = require('broccoli-funnel');
var Less = require('broccoli-less-single');
var mergeTrees = require('broccoli-merge-trees');
var replace = require('broccoli-string-replace');
module.exports = function(defaults) {
@zakmac
zakmac / .scss-lint.yml
Last active August 29, 2015 14:25
SCSS linter settings
# https://github.com/brigade/scss-lint/blob/master/lib/scss_lint/linter/README.md
# file includes
scss_files: 'app/styles/**/*.scss'
# linter settings
linters:
BangFormat:
space_before_bang: true
space_after_bang: false
import Ember from 'ember';
// GitHub - https://github.com/zakmac/ember-cli-filter-component
// npm - npmjs.com/package/ember-cli-filter-component
/**
* FilterContentComponent
*
* @description component that applys a simple filter to a specified content model
* based on basic matching
@zakmac
zakmac / components.deep-link.js
Last active October 6, 2016 21:32
Dashboard Nav Test