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
<polymer-element name="t-bar" attributes="logoSrc logoHref"> | |
<template> | |
<div class="row"> | |
<div class="large-12 columns"> | |
<a href="{{logoHref}}"><img src="{{logoSrc}}" class="logo left"></a> | |
<content></content> | |
</div> | |
</div> | |
</template> | |
<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
#!/usr/bin/env python | |
import subprocess | |
import sys | |
import os.path, time | |
def get_modified_time(file): | |
return time.ctime(os.path.getmtime(file)) | |
def run_js_tools(files_str): | |
"""Iterate though list and run code quality tools""" |
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
// Aggressive Whitespace - Cannot find industry precedent for this style | |
// Invocations | |
foo( 'bar' ); | |
foo( { key: 'prop' } ); | |
foo( { key: getValue( 'foo' ) } ); | |
// Examples of operator precedence clarification wrapping | |
if ( ( x * y ) + 1 > ( z / 2 ) ) { /* ... */ } |
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
require.config({ | |
shim: { | |
'lib/angular/angular': { deps: ['lib/jquery-1.9.0'], exports: 'angular' } | |
, 'lib/angular/angular-resource': { deps: ['lib/angular/angular'], exports: 'ngResource' } | |
, 'lib/jquery-1.9.0': { deps: [], exports: 'jQuery, $' } | |
, 'lib/d3': { deps: ['lib/jquery-1.9.0'] } | |
, 'bootstrap': { deps: ['lib/angular/angular', 'app'] } | |
, 'directives/d3.donutCharts': { deps: ['d3', 'app' ] } | |
, 'controllers/socialFeed': { deps: ['lib/angular/angular','app' ] } | |
, 'controllers/keywordsCtrl': { deps: ['app'] } |