Skip to content

Instantly share code, notes, and snippets.

Mattie J jonesmac

Block or report user

Report or block jonesmac

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View webpack-karma-warnings-plugin.ts
/*
* This plugin makes sure karma doesn't run any specs when there's a
* compilation error in a module by checking the finished compilation for warnings
* which would prevent tests from accurately running.
*
* Inspiration for looking at the warnings length
* https://gist.github.com/Stuk/6b574049435df532e905
*/
import { Compiler } from 'webpack';
@jonesmac
jonesmac / app.module.ts
Last active Feb 8, 2018 — forked from mrgoos/app.module.ts
Intercepting http request/respons in Angular 2. Works from version 2.3.0.
View app.module.ts
...
...
providers: [
{ provide: Http, useClass: ExtendedHttpService }
]
...
...
@jonesmac
jonesmac / mobileMenuTouchHelper.js
Created May 16, 2016
Touch Friendly Drop Down Menu
View mobileMenuTouchHelper.js
function mobileMenuTouchHelper () {
$(document).on('page:change', function () {
var topLevelMenuItems = $('.menu__list > a');
menuTouches(topLevelMenuItems);
$(window).on('orientationchange', function () {
unbindTouches(topLevelMenuItems);
menuTouches(topLevelMenuItems);
});
});
}
@jonesmac
jonesmac / config.json
Created Sep 11, 2015 — forked from anonymous/config.json
Bootstrap Customizer Config
View config.json
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@jonesmac
jonesmac / Memcache-osx.markdown
Last active Jun 30, 2017
Setting Up MemCache on OSX with MAMP 2.0
View Memcache-osx.markdown
@jonesmac
jonesmac / CSS: Tabs Basic CSS
Created Mar 2, 2013
Basic CSS for tabs through Jquerytools
View CSS: Tabs Basic CSS
/* root element for tabs */
ul.tabs {
list-style:none;
border-bottom:1px solid #666;
height:30px;
}
/* single tab */
ul.tabs li {
@jonesmac
jonesmac / JS: Tabs Basic Script
Created Mar 2, 2013
Basic Script Call for Jquery Tools Tabs
View JS: Tabs Basic Script
$(function() {
// setup ul.tabs to work as tabs for each div directly under div.panes
$("ul.tabs").tabs("div.panes > div");
});
@jonesmac
jonesmac / HTML: Tabs Basic HTML
Created Mar 2, 2013
Basic HTML Structure for Jquerytools tabs
View HTML: Tabs Basic HTML
<!-- the tabs -->
<ul class="tabs">
<li><a href="#">Tab 1</a></li>
<li><a href="#">Tab 2</a></li>
<li><a href="#">Tab 3</a></li>
</ul>
<!-- tab "panes" -->
<div class="panes">
<div>First tab content. Tab contents are called "panes"</div>
@jonesmac
jonesmac / gist:4747173
Last active Dec 12, 2015
CSS: Single Page Site Waypoint CSS
View gist:4747173
.sticky nav {
position:fixed;
top:0;
left:0;
width:100%;
z-index: 999;
}
.sticky nav ul {
margin:0 auto;
@jonesmac
jonesmac / gist:4747169
Last active Dec 12, 2015
HTML: Single Page Site Waypoint Markup
View gist:4747169
<section id="main" class="nameof-page">
<nav id="page-menu-wrapper">
<ul id="page-menu">
<li><a href="#"></a></li>
<li><a href="#" class="last"></a></li>
</ul>
</nav>
<div id="sectionname" class="page-section">
You can’t perform that action at this time.