Skip to content

Instantly share code, notes, and snippets.

View harrisrobin's full-sized avatar
🛳️
Shipping

harris.dev harrisrobin

🛳️
Shipping
View GitHub Profile
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'
// 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)}},
@harrisrobin
harrisrobin / recursion.js
Created November 3, 2015 19:28 — forked from bendc/recursion.js
Functional loop
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);
};
})();
// 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 = {};
}
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,
Tasks = new Mongo.Collection("tasks");
if (Meteor.isClient) {
Template.body.helpers({
tasks: function () {
return Tasks.find({});
}
});
Template.body.events({
<head>
<title>Todo List</title>
</head>
<body>
<div class="container">
<header>
<h1>Todo List</h1>
</header>
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';
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 = {
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];