Skip to content

Instantly share code, notes, and snippets.

View jackmakesthings's full-sized avatar
🌙

jack jackmakesthings

🌙
View GitHub Profile
@jackmakesthings
jackmakesthings / SassMeister-input-HTML.html
Created April 15, 2014 19:02
Generated by SassMeister.com.
<hr>
@jackmakesthings
jackmakesthings / SassMeister-input-HTML.html
Created April 18, 2014 16:51
Generated by SassMeister.com.
<div id="page">
<div id="sidebar">
<a class="logo" href="#">Home</a>
<nav>
<ul class="main-nav">
<li><a href="#shows" title="Shows">Shows</a></li>
<li><a href="#about" title="About">About</a></li>
<li><a href="#attend" title="Attend">Attend</a></li>
<li><a href="#exhibit" title="Exhibit">Exhibit</a></li>
var delta;
dragThreshold = 0.15;// "percentage" to drag before engaging
dragStart = null; // used to determine touch / drag distance
percentage = 0,
target,
previousTarget;
function touchStart(event) {
if (dragStart !== null) { return; }
@jackmakesthings
jackmakesthings / SassMeister-input-HTML.html
Created April 23, 2014 19:37
Generated by SassMeister.com.
<div id="press" class="module-block">
<div class="module-block__inner">
<h1>Press</h1>
<h2>Recent Articles</h2>
<div class="module-block__inner-content main-press">
<figure class="ss-icon">
<img src="http://fillmurray.com/100/115" alt="">
<figcaption><a href="#">test link</a></figcaption>
</figure>
@jackmakesthings
jackmakesthings / SassMeister-input-HTML.html
Created April 23, 2014 19:41
Generated by SassMeister.com.
<div id="press" class="module-block">
<div class="module-block__inner">
<h1>Press</h1>
<h2>Recent Articles</h2>
<div class="module-block__inner-content main-press">
<figure class="ss-icon">
<img src="http://fillmurray.com/100/115" alt="">
<figcaption><a href="#">test link</a></figcaption>
</figure>
@jackmakesthings
jackmakesthings / 0-timeline.html
Created April 28, 2014 17:41
Simple timeline module. Left out the javascript for now as it's not a great example; all it was doing was adding the 'is-shown' class when timeline items came into view. (note to self: port to a proper repo/add to lib later)
<div class="timeline-block">
<ol class="timeline">
<li class="timeline-item timeline-item-minor right">
<p>2000: Founding of Industry Ventures (now $1bn manager)</p>
</li>
<li class="timeline-item timeline-item-major">
2000: $40M AUM
@jackmakesthings
jackmakesthings / block.php
Last active August 29, 2015 14:01
exploring options to mark up and process a form
<?php
// this would require some data structure, you'd have the jobs in there as variables;
// i set them up here as if they're arrays but objects would be fine too
foreach($jobs as $job) : ?>
<div class="row career-block">
<div class="col-md-9 career-description">
<h1><?php echo $job['title']; ?></h1>
@jackmakesthings
jackmakesthings / _useful
Last active August 29, 2015 14:01
Utils and modules
Things that might come in handy again later.
@jackmakesthings
jackmakesthings / tabs.css
Created May 19, 2014 20:24
here's one way to handle basic toggling tabs
.tab { display:none; background: #ccc; padding:10px; }
.tab.show { display: block; }
@jackmakesthings
jackmakesthings / 01-module-template.js
Created June 5, 2014 18:11
Module patterns and stuff, via Addy Osmani's book on js patterns - http://addyosmani.com/resources/essentialjsdesignpatterns/book/
var myNamespace = (function () {
var myPrivateVar, myPrivateMethod;
// A private counter variable
myPrivateVar = 0;
// A private function which logs any arguments
myPrivateMethod = function( foo ) {
console.log( foo );