Skip to content

Instantly share code, notes, and snippets.

View mattkenefick's full-sized avatar
🏠
Working from home

Matt Kenefick mattkenefick

🏠
Working from home
View GitHub Profile
find ./ -exec grep -Hn "yourSearch" {} \;
@mattkenefick
mattkenefick / gist:3940402
Created October 23, 2012 18:06
Escape blockquotes in the WYSIWYG
// escape blockquotes
if (
selectedNode.children &&
(lastNode = Array.prototype.slice.call(selectedNode['children'], -1)[0]).tagName == 'BR'
&& selectedNode.tagName == 'BLOCKQUOTE') {
// remove previous break
selectedNode.removeChild(lastNode);
// attach to something new
var invisibleSpace = document.createTextNode(wysihtml5.INVISIBLE_SPACE);
/**
* Application.ui.Playlist
*
* Description
*
*
*/
Application.ui.Playlist = new(function(){
@mattkenefick
mattkenefick / gist:4736718
Created February 8, 2013 05:04
image blurry thingy
<!DOCTYPE html>
<html>
<head>
<style>
html, body {
margin : 0;
padding : 0;
height : 100%;
width : 100%;
background : #000;
@mattkenefick
mattkenefick / gist:4982494
Created February 19, 2013 02:08
Start of Dribble.
<!DOCTYPE html>
<html>
<head>
<style>
ul, li { margin: 0; padding: 0; list-style: none; }
.menu-wrapper {
position: absolute;
width: 200px;
font: 13px/1.4 "freight-sans-pro", "Helvetica", Arial, sans-serif;
@mattkenefick
mattkenefick / sigma.concat.js
Created September 10, 2013 17:45
Sigma Concatenated
// Define packages:
var sigma = {};
sigma.tools = {};
sigma.classes = {};
sigma.instances = {};
// Adding Array helpers, if not present yet:
(function() {
if (!Array.prototype.some) {
Array.prototype.some = function(fun /*, thisp*/) {
@mattkenefick
mattkenefick / gist:8485639
Created January 18, 2014 03:11
Custom posters for YouTube and Vimeo
<!DOCTYPE html>
<html>
<head>
<title>Posters Test for Video</title>
<style>
.group {
height: 250px;
outline: 1px solid red;
position: relative;
@mattkenefick
mattkenefick / gist:f2244f64f777349e9da3
Created August 7, 2014 20:32
Hate Wordpress Less - Install / Setup Script
#!/bin/bash
set -e
#
# @package Wordpress Commands
# @authors Matt Kenefick (matt@polymermallard.com)
# @date 2014-08-07 16:27:36
#
# Install the most recent version of Wordpress to your current directory.
# Connect to your local MySQL, check if DB exists, if not, create.
@mattkenefick
mattkenefick / gist:36781fed0c9040639660
Created August 8, 2014 21:08
Internet Explorer... I thought you were getting your shit together
/*
from 2 years ago: http://bugs.jqueryui.com/ticket/8844
most things don't work there.
I was testing on Parallels, Windows 8, IE 11.0.9600
Bullets from list items kept showing up on desktop IE 11 and
windows phone 8 IE10 no matter what I did. !important, dynamic
style, etc, didn't work. They always showed up.
@-webkit-keyframes pulse {
0% {
-webkit-transform: scale3d(1, 1, 1);
transform: scale3d(1, 1, 1);
}
50% {
-webkit-transform: scale3d(1.05, 1.05, 1.05);
transform: scale3d(1.05, 1.05, 1.05);
}