Skip to content

Instantly share code, notes, and snippets.

View jsheffers's full-sized avatar

Shane Jeffers jsheffers

View GitHub Profile
@jsheffers
jsheffers / gist:0cab09a6ebd30c80cd6498b917383dea
Last active January 22, 2021 16:37
Santize Redux Actions (by property)
// Recursive function to find keys, and clear out sensitive data.
export const sanitizeReduxActions = (theObject, exclusions) => {
var result = null;
if (theObject instanceof Array) {
for (var i = 0; i < theObject.length; i++) {
result = sanitizeReduxActions(theObject[i], exclusions);
if (result) {
break;
}
}
@jsheffers
jsheffers / SassMeister-input-HTML.html
Created September 18, 2015 16:20
Generated by SassMeister.com.
<div class="o-grid">
<div class="lg-6">
[content goes here]
</div>
<div class="lg-6">
[content goes here]
</div>
</div>
@jsheffers
jsheffers / MegaDrop_JS.js
Created December 16, 2014 03:20
MegaDrop JS
$(function(){
$('.animated > li').hover(function(){
$(this).find('div[class^="container-"]').stop().slideDown('fast');
},
function(){
$(this).find('div[class^="container-"]').stop().slideUp('slow');
});
});
@jsheffers
jsheffers / MegaDrop_CSS.css
Last active August 29, 2015 14:11
MegaDrop CSS
.col1, .col2, .col3, .col4, .col5, .col6 { margin: 10px 0; padding: 0 10px; float: left; }
/* 1 Column */
.container-1 { width: 170px; }
.container-1 .col1 { width: 100%; }
/* 2 Columns */
.container-2 { width: 270px; }
.container-2 .col1 { width: 50%; }
.container-2 .col2 { width: 100%; }
@jsheffers
jsheffers / MegaDrop_link.html
Last active August 29, 2015 14:11
MegaDrop gist 1
@jsheffers
jsheffers / MegaDrop_nav.html
Last active August 29, 2015 14:11
MegaDrop gist 2
<ul class="nav">
<li><a href="#">Home</a></li>
<li><a href="#">Products</a>
<div class="container-4">
<div class="col2">
<p>This is the left column</p>
</div>
<div class="col2">
<p>This is the right column</p>
</div>
@jsheffers
jsheffers / array_debug.txt
Created September 17, 2014 02:36
Printing out an array for debugging.
echo "<pre>";
print_r($array);
echo "</pre>";