Skip to content

Instantly share code, notes, and snippets.

View bmuenzenmeyer's full-sized avatar
🦆

Brian Muenzenmeyer bmuenzenmeyer

🦆
View GitHub Profile
@bmuenzenmeyer
bmuenzenmeyer / sonnet18.md
Last active February 14, 2024 02:45
Sonnet 18 Diff
Shall I compare thee to a summer’s day?
- Thou art more lovely and more temperate.
+ Thou code more lovely and more temperate.
- Rough winds do shake the darling buds of May,
+ Rough diffs do shake the reviews to dismay,
- And summer’s lease hath all too short a date.
+ And day’s release hath all too short a date.

- Sometime too hot the eye of heaven shines,
/******************************************************
* PATTERN LAB NODE
* EDITION-NODE-GULP
* The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.
******************************************************/
var gulp = require('gulp'),
path = require('path'),
browserSync = require('browser-sync').create(),
sass = require('gulp-sass'),
argv = require('minimist')(process.argv.slice(2));
;
(function ($) {
$.fn.timeInput = function () {
//do something
return this;
};
})(jQuery);
@bmuenzenmeyer
bmuenzenmeyer / gist:9dd62b9def7c8e5fc55c
Created October 28, 2014 05:09
A simple gruntfile to extract Wordpress theme and plugin assets for concatenation and minification
'use strict';
module.exports = function(grunt){
grunt.initConfig({
sass: {
dist: {
options: {
style: 'compressed'
},
files: {
'../wp-content/themes/SiteName/style.css': 'scss/main.scss'
@bmuenzenmeyer
bmuenzenmeyer / gist:9872525
Created March 30, 2014 13:04
Yepnope Gist
<script src="lib/yepnope.1.5.4-min.js"></script>
<script>
if(window.matchMedia("(min-width: 30em)").matches){
yepnope([{
load: 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js',
complete: function () {
if (!window.jQuery){
yepnope('lib/jquery-1.9.1.min.js');
}
@bmuenzenmeyer
bmuenzenmeyer / gist:6840020
Created October 5, 2013 11:59
Early Crunchy Owl Structured Text

#Crunchy Owl# ##a dawning of individual design##


Crunchy Owl is a small web design and development studio, the professional outlet for Brian Muenzenmeyer. I stay up late, long past office hours end, guarding against mediocrity and timelines. I get eyes on your goals, using a wise and agile process to take flight and bring your solution to new heights. Our destination? Not the same damn place.

##Hire Crunchy Owl##

I am passionate about:

@bmuenzenmeyer
bmuenzenmeyer / variable based transition mixin
Created August 8, 2013 03:01
variable based transition mixin
//usage: @include shift([property],[duration],[easing]);
@mixin shift($property: all, $duration: $transitionSpeed, $ease: $easingFunction){
-webkit-transition: $property $duration $ease;
-moz-transition: $property $duration $ease;
-o-transition: $property $duration $ease;
transition: $property $duration $ease;
}
@bmuenzenmeyer
bmuenzenmeyer / transition scss mixin
Last active December 20, 2015 19:09
Transition SASS Mixin
//usage: @include shift([property],[duration],[easing]);
@mixin shift($property: all, $duration: .3s, $ease: linear){
-webkit-transition: $property $duration $ease;
-moz-transition: $property $duration $ease;
-o-transition: $property $duration $ease;
transition: $property $duration $ease;
}

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@bmuenzenmeyer
bmuenzenmeyer / localstorage_fallback.js
Created October 5, 2012 18:24
localstorage polyfill I found somewhere online
if (!window.localStorage) {
window.localStorage = {
getItem: function (sKey) {
if (!sKey || !this.hasOwnProperty(sKey)) { return null; }
return unescape(document.cookie.replace(new RegExp("(?:^|.*;\\s*)" + escape(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"), "$1"));
},
key: function (nKeyId) { return unescape(document.cookie.replace(/\s*\=(?:.(?!;))*$/, "").split(/\s*\=(?:[^;](?!;))*[^;]?;\s*/)[nKeyId]); },
setItem: function (sKey, sValue) {
if(!sKey) { return; }
document.cookie = escape(sKey) + "=" + escape(sValue) + "; path=/";