This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=vertically-centered-child($size: $base-font-size) | |
font-size: 0 | |
&:before | |
content: '' | |
display: inline-block | |
height: 100% | |
vertical-align: middle | |
> * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.9) | |
// Compass (v1.0.0.alpha.20) | |
// ---- | |
=calcIt($property, $fallback, $expression) | |
#{$property}: $fallback | |
#{$property}: calc(#{$expression}) | |
body |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// Sass (v3.3.14) | |
// Compass (v1.0.1) | |
// ---- | |
$colors: ( | |
birthday: #0989cb, | |
gender: #8666ae, | |
weight: #02bba7, | |
height: #ff8178 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Viget</h1> | |
<ul> | |
<li> | |
<a href="http://viget.com/about#team" class="flyout-nav">Team</a> | |
<ul class="flyout"> | |
<li> | |
<a href="http://viget.com/about/team/bwilliams">Brian W. Williams</a> | |
</li> | |
<li> | |
<a href="http://viget.com/about/team/arankin">Andy Rankin</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from .local import * | |
CACHES = { | |
'default': { | |
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', | |
'LOCATION': '127.0.0.1:11211' | |
} | |
} | |
CACHE_MIDDLEWARE_SECONDS = 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf import settings | |
from django.http import HttpResponse | |
from django.shortcuts import render | |
from dummyjson import views as dj | |
from ordereddict import OrderedDict | |
import json | |
def story(request, content_id, slug=None, template=None): | |
path = '/static/content/modules/stories/story_' + content_id + '.json' | |
if not template: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build an asset collection for front next/prev navigation | |
asset_collection = [] | |
if item['name'] == 'hero' or item['name'] == 'headline-grid': | |
asset = {} | |
for content in item['contents']: | |
asset[u'headline'] = content.get('headline') | |
asset[u'links'] = content.get('links') | |
asset[u'photo'] = content.get('photo') | |
asset_collection.append(asset) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Load 'blog' card (layer 0). | |
*/ | |
loadBlogPage: function(path) { | |
//resets the nav to home so no subsections are highlighted | |
this.updateNavigation(); | |
if(this.DEBUG) {console.log('Router: Load blog: ', path);} | |
PubSub.trigger('loadBlog:router', path); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>MapBox Fun</title> | |
<link rel="stylesheet" href="leaflet.css" /> | |
<!--[if lte IE 8]> | |
<link rel="stylesheet" href="leaflet.ie.css" /> | |
<![endif]--> | |
<script src="leaflet.js"></script> | |
<script src="wax.leaf.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* Reqwest! A general purpose XHR connection manager | |
* copyright Dustin Diaz 2011 | |
* https://github.com/ded/reqwest | |
* license MIT | |
*/ | |
!function(context,win){function serial(a){var b=a.name;if(a.disabled||!b)return"";b=enc(b);switch(a.tagName.toLowerCase()){case"input":switch(a.type){case"reset":case"button":case"image":case"file":return"";case"checkbox":case"radio":return a.checked?b+"="+(a.value?enc(a.value):!0)+"&":"";default:return b+"="+(a.value?enc(a.value):"")+"&"}break;case"textarea":return b+"="+enc(a.value)+"&";case"select":return b+"="+enc(a.options[a.selectedIndex].value)+"&"}return""}function enc(a){return encodeURIComponent(a)}function reqwest(a,b){return new Reqwest(a,b)}function init(o,fn){function error(a){o.error&&o.error(a),complete(a)}function success(resp){o.timeout&&clearTimeout(self.timeout)&&(self.timeout=null);var r=resp.responseText;if(r)switch(type){case"json":resp=win.JSON?win.JSON.parse(r):eval("("+r+")");break;case"js":resp=eval(r);break;case"html":resp=r}fn(resp),o.suc |
OlderNewer