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: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 / 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;
}
@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;
}

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=/";
@bmuenzenmeyer
bmuenzenmeyer / gist:2724374
Created May 18, 2012 09:54
Picture Element Polyfill Syntax with HD(Retina) Support
<picture alt="A Thoroughly Polite Dust Up">
<!-- <source src="../images/AThoroughlyPoliteDustUp_350.png"> -->
<source src="../images/AThoroughlyPoliteDustUp_350.png">
<!-- <source src="../images/AThoroughlyPoliteDustUp_350.pngx2.png" media="(min-device-pixel-ratio: 2.0)"> -->
<source src="../images/hd/AThoroughlyPoliteDustUp_350.pngx2.png" media="(-webkit-min-device-pixel-ratio: 2.0)">
<!-- <source src="../images/AThoroughlyPoliteDustUp_350.png" media="(min-width: 500px)"> -->
<source src="../images/AThoroughlyPoliteDustUp.png" media="(min-width: 500px)">
<!-- <source src="../images/AThoroughlyPoliteDustUp.png" media="(min-width: 500px) and (-webkit-min-device-pixel-ratio: 2.0)"> -->
<source src="../images/hd/AThoroughlyPoliteDustUp.png" media="(min-width: 500px) and (-webkit-min-device-pixel-ratio: 2.0)">
<!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. -->
@bmuenzenmeyer
bmuenzenmeyer / static_server.js
Created April 16, 2012 17:48 — forked from ryanflorence/static_server.js
Node.JS static file web server. Put it in your path to fire up servers in any directory, takes an optional port argument.
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);