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 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 );
// Generated on 2014-06-16 using generator-webapp 0.4.9
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
@jackmakesthings
jackmakesthings / create_section.php
Last active August 29, 2015 14:03
just sketching out an idea here
<?php
// This goes in functions.php
function create_section($key, $heading) {
global $post; // makes sure the reference to get_field is correct
$out = '<div class="module-block__inner-toggle" id="show-' . $key . '">';
$out .= '<h1>' . $heading . '</h1>';

Style tiles with SCSS

Design style tiles in the browser with SCSS! Fork this in CodePen and make your own tiles. Share your tiles with clients with the Full Page link. Go CodePen Pro and update styles on the fly in Live View in a meeting with your client. It's responsive, too. Get your in-browser design on.

On GitHub at http://github.com/jeradg/style-tiles-with-scss

Like this? Follow me on CodePen (http://codepen.io/jeradg) and Twitter (http://twitter.com/jeradg)

A brief explanation:

@jackmakesthings
jackmakesthings / SassMeister-input-HTML.html
Created July 16, 2014 19:40
Generated by SassMeister.com.
<div class="container">
<div class="secondary-feature">
<img src="http://washingtonsquareparkconservancy.org/wp-content/uploads/2013/10/copy-WSP_Logo_Animation.gif" alt="">
<h2>Public <br>Spaces</h2>
<span>Helping an NYC <br>local landmark reach its visitors</span>
</div>
<div class="secondary-feature">
<img src="http://www.kratedesign.com/wp-content/uploads/2013/10/IMG_6495-503x377.jpg" alt="">
<h2>Antiques, modernized</h2>