Skip to content

Instantly share code, notes, and snippets.

View kbighorse's full-sized avatar

Kimball Bighorse kbighorse

View GitHub Profile
import React, { Component } from "react";
import Fish from "./Fish";
import Header from "./Header";
import Order from "./Order";
import Inventory from "./Inventory";
import sampleFishes from "../sample-fishes"
import base from "../base";
class App extends Component {
state = {
$ rubocop config/initializers/sorcery.rb
Inspecting 1 file
C
Offenses:
config/initializers/sorcery.rb:2:81: C: Metrics/LineLength: Line is too long. [99/80]
# The default is nothing which will include only core features (password encryption, login/logout).
^^^^^^^^^^^^^^^^^^^
config/initializers/sorcery.rb:4:81: C: Metrics/LineLength: Line is too long. [90/80]
$ cap rubber:create_staging
triggering load callbacks
* 2017-07-26 22:33:04 executing `rubber:init'
** Auto role: web => prod-king2.peltabeta.com, {:platform=>"linux", :provider=>"aws"}
** Auto role: haproxy => prod-king2.peltabeta.com, {:platform=>"linux", :provider=>"aws"}
** Auto role: app => prod-king2.peltabeta.com, {:platform=>"linux", :provider=>"aws"}
** Auto role: passenger_nginx => prod-king2.peltabeta.com, {:platform=>"linux", :provider=>"aws"}
** Auto role: db => prod-king2.peltabeta.com, {:primary=>true, :platform=>"linux", :provider=>"aws"}
** Auto role: mysql => prod-king2.peltabeta.com, {:platform=>"linux", :provider=>"aws"}
** Auto role: mysql_master => prod-king2.peltabeta.com, {:platform=>"linux", :provider=>"aws"}
⇒ npm run serve
> policynet@1.0.0 serve /Users/kimball/lii/docker_policynet/policynet
> gulp serve:dist
[14:04:48] Using gulpfile ~/lii/docker_policynet/policynet/gulpfile.js
[14:04:48] Starting 'scripts'...
[14:04:48] Starting 'styles'...
[14:04:49] Starting 'partials'...
[14:04:49] Starting 'fonts'...
Uncaught TypeError: e.module(...).info is not a function
at vendor-6fa973a1e8.js:50
at vendor-6fa973a1e8.js:50
app-95fa1aa75d.js:1 Uncaught ReferenceError: toastr is not defined
at app-95fa1aa75d.js:1
at app-95fa1aa75d.js:1
vendor-6fa973a1e8.js:32 Uncaught Error: [$injector:modulerr] Failed to instantiate module policynet due to:
Error: [$injector:modulerr] Failed to instantiate module md.data.table due to:
Error: [$injector:nomod] Module 'md.data.table' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.5.11/$injector/nomod?p0=md.data.table
⇒ npm run serve
> policynet@1.0.0 serve /Users/kimball/lii/docker_policynet/policynet
> gulp serve:dist
[16:04:29] Using gulpfile ~/lii/docker_policynet/policynet/gulpfile.js
[16:04:29] Starting 'scripts'...
[16:04:30] Starting 'styles'...
[16:04:31] Starting 'partials'...
[16:04:32] Starting 'fonts'...
// Create resources
//USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM "file:avon_test_tables_Resources.csv" AS row
CREATE (:Resource {nameOrTitle: row.NameOrTitle, topic: row.Topic, type: row.Type, summary: row.Summary, keywords: row.Keywords, URL: row.URL, year: row.Year})
// Create topics
USING PERIODIC COMMIT
LOAD CSV WITH HEADERS FROM "file:///data.csv" AS row
CREATE (:Topic {title: row.Topic, id: row.TopicID})
diff --git a/Gemfile b/Gemfile
index 11793bd..661bcee 100644
--- a/Gemfile
+++ b/Gemfile
@@ -27,6 +27,7 @@ gem "devise"
gem "omniauth"
gem "aasm"
gem "baby_squeel"
+gem "rails_admin", "1.1.1"
2016-12-22 17:04:07.709+0000 INFO [o.n.k.i.f.CommunityFacadeFactory] No locking implementation specified, defaulting to 'community'
2016-12-22 17:04:07.811+0000 INFO [o.n.k.AvailabilityGuard] Requirement makes database unavailable: Database available
2016-12-22 17:04:07.831+0000 INFO [o.n.k.i.DiagnosticsManager] --- INITIALIZED diagnostics START ---
2016-12-22 17:04:07.831+0000 INFO [o.n.k.i.DiagnosticsManager] Neo4j Kernel properties:
2016-12-22 17:04:07.831+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.connector.http.enabled=true
2016-12-22 17:04:07.831+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.security.auth_enabled=true
2016-12-22 17:04:07.831+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.connector.bolt.type=BOLT
2016-12-22 17:04:07.831+0000 INFO [o.n.k.i.DiagnosticsManager] unsupported.dbms.directories.neo4j_home=/usr/local/Cellar/neo4j/3.0.7/libexec
2016-12-22 17:04:07.831+0000 INFO [o.n.k.i.DiagnosticsManager] dbms.directories.import=import
2016-12-22 17:04:07.831+0000 INFO [o.n.k.i.DiagnosticsM
[31] pry(main)> c.lecture_pages.map {|p| p.lecture_components.map{|c| "#{c.external_tool.id}" if c.type == 'ExternalToolLectureComponent' } }
=> [["4", nil, nil, nil, nil, nil],
[nil],
[nil],
["4"],
[],
[nil],
[nil, "4", nil, nil],
["4", "4"],
[nil, nil, nil, nil, nil, nil, nil, nil],