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
app/views/shared/_nav.html.erb:7:in `_app_views_shared__nav_html_erb___3337162440069738047_70144395417960' | |
actionpack (4.0.2) lib/action_view/template.rb:143:in `block in render' | |
activesupport (4.0.2) lib/active_support/notifications.rb:161:in `instrument' | |
actionpack (4.0.2) lib/action_view/template.rb:141:in `render' | |
actionpack (4.0.2) lib/action_view/renderer/partial_renderer.rb:306:in `render_partial' | |
actionpack (4.0.2) lib/action_view/renderer/partial_renderer.rb:279:in `block in render' | |
actionpack (4.0.2) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' | |
activesupport (4.0.2) lib/active_support/notifications.rb:159:in `block in instrument' | |
activesupport (4.0.2) lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
activesupport (4.0.2) lib/active_support/notifications.rb:159:in `instrument' |
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
// Usage: | |
// 1. Extract critical path CSS (see: http://addyosmani.com/blog/tag/critical-path-css) | |
// 2. Inline extracted styles within <head> | |
// 2. Place loader IIFE within <script> tags at end of <body> | |
(function(b,f){var c=[ | |
"styles/style1.css", | |
"styles/style2.css" | |
],a=function(){for(var g=0;g<c.length;g++){var d=f.createElement("link");d.rel="stylesheet"; | |
d.href=c[g];var j=f.getElementsByTagName("head")[0];j.parentNode.insertBefore(d,j)}}, |
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
const loop = (() => { | |
const recur = (callback, count, i=0) => { | |
if (i == count-1) return callback(i); | |
callback(i); | |
return recur(callback, count, i+1); | |
}; | |
return (callback, count) => { | |
if (count > 0) return recur(callback, count); | |
}; | |
})(); |
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
// Generated on 2015-05-14 using generator-angular-fullstack 2.0.13 | |
'use strict'; | |
module.exports = function (grunt) { | |
var localConfig; | |
try { | |
localConfig = require('./server/config/local.env'); | |
} catch(e) { | |
localConfig = {}; | |
} |
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
Config: | |
{ dest: 'dist', | |
main: 'app/app.js', | |
destMain: 'dist/app', | |
routes: | |
[ 'app/login/login', | |
'app/dashboard/dashboard', | |
'app/admin/admin', | |
'app/forms/forms' ], | |
bundleThreshold: 0.6, |
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
Tasks = new Mongo.Collection("tasks"); | |
if (Meteor.isClient) { | |
Template.body.helpers({ | |
tasks: function () { | |
return Tasks.find({}); | |
} | |
}); | |
Template.body.events({ |
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
<head> | |
<title>Todo List</title> | |
</head> | |
<body> | |
<div class="container"> | |
<header> | |
<h1>Todo List</h1> | |
</header> |
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
import React, { PropTypes } from 'react'; | |
import {connect} from 'react-redux'; | |
// import { Link } from 'react-router' | |
import styles from './HomeView.scss'; | |
import URI from '../../utils/URL'; | |
import { getIndustries } from '../../redux/modules/industries'; | |
import { getPosConnectors } from '../../redux/modules/posConnectors'; | |
// Component | |
import Home from '../../components/Home'; |
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
import React, {PropTypes} from 'react'; | |
import styles from './Industries.scss'; | |
import cs from 'classnames'; | |
// Components | |
import Industry from './Industry'; | |
const Industries = (props) => { | |
let theme = styles[props.theme]; | |
let classes = { |
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
import React, {PropTypes} from 'react'; | |
import styles from './Industries.scss'; | |
import cs from 'classnames'; | |
import ISVG from 'react-inlinesvg'; | |
// Assets | |
import checkMarkSVG from './images/check.svg'; | |
const Industry = (props) => { | |
let theme = styles[props.theme]; |
OlderNewer