This file contains hidden or 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
| @import "compass/utilities/sprites/base"; | |
| // General Sprite Defaults | |
| // You can override them before you import this file. | |
| $emblem-sprite-base-class: ".emblem-sprite" !default; | |
| $emblem-sprite-dimensions: false !default; | |
| $emblem-position: 0% !default; | |
| $emblem-spacing: 0 !default; | |
| $emblem-repeat: no-repeat !default; |
This file contains hidden or 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
| import unittest | |
| from pyramid import testing | |
| from paste.deploy.loadwsgi import appconfig | |
| from webtest import TestApp | |
| from mock import Mock | |
| from sqlalchemy import engine_from_config | |
| from sqlalchemy.orm import sessionmaker | |
| from app.db import Session |
This file contains hidden or 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
| (function() { | |
| // Do not use this library. This is just a fun example to prove a | |
| // point. | |
| var Bloop = window.Bloop = {}; | |
| var mountId = 0; | |
| function newMountId() { | |
| return mountId++; | |
| } |
This file contains hidden or 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
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| pkg: grunt.file.readJSON('package.json'), | |
| uglify: { | |
| options: { | |
| sourceMap: true, | |
| sourceMapIncludeSources: true, | |
| sourceMapIn: 'js/app.coffee.js.map' | |
| }, |
NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
This file contains hidden or 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
| // Still need to work out how to combine rules for numbers | |
| // that share a greatest common factor without the unit-builder | |
| // actually containing the fraction to which they can both be | |
| // reduced. | |
| // Calculate the greatest common factor of two integers | |
| @function gcf($a, $b) { | |
| @if $b == 0 { | |
| @return $a; | |
| } |
This file contains hidden or 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
| /*------------------------------------*\ | |
| $NAV | |
| \*------------------------------------*/ | |
| /* | |
| TAGS: ^lists ^navigation ^text | |
| */ | |
| /* | |
| As per csswizardry.com/2011/09/the-nav-abstraction | |
| */ | |
| .nav{ |
This file contains hidden or 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
| /* | |
| * anchor-include pattern for already-functional links that work as a client-side include | |
| * Copyright 2011, Scott Jehl, scottjehl.com | |
| * Dual licensed under the MIT | |
| * Idea from Scott Gonzalez | |
| * to use, place attributes on an already-functional anchor pointing to content | |
| * that should either replace, or insert before or after that anchor | |
| * after the page has loaded | |
| * Replace: <a href="..." data-replace="articles/latest/fragment">Latest Articles</a> | |
| * Before: <a href="..." data-before="articles/latest/fragment">Latest Articles</a> |
This file contains hidden or 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 zope.schema import getFields | |
| from zope.interface import providedBy | |
| from zope.interface import implementedBy | |
| from zope.component import getUtility | |
| from zope.component import queryUtility | |
| from plone.behavior.interfaces import IBehavior | |
| from plone.behavior.interfaces import IBehaviorAssignable | |
| from plone.dexterity.interfaces import IDexterityFTI | |
| from plone.dexterity.utils import resolveDottedName |