Skip to content

Instantly share code, notes, and snippets.

View averygoodplanet's full-sized avatar

Peter Himmelreich averygoodplanet

View GitHub Profile
@averygoodplanet
averygoodplanet / budget.rb
Last active May 11, 2020 05:29
How to simulate devise's current_user variable in rspec unit tests?
class Budget < ActiveRecord::Base
belongs_to :user
has_many :categories, dependent: :destroy
end
@averygoodplanet
averygoodplanet / gist:7810353
Last active December 30, 2015 09:39
Editing Loaded Map Errors
SETUP OF ERROR:
1. Login
2. Create a new map and save it.
3. From table screen click Load to load the map.
EVENTS THAT TRIGGER ERROR (from step 3 above):
-left-click once on node's title causes (a) nodes to swell large or to most of canvas size
-double-click (a) causes node shapes to disappear.
@averygoodplanet
averygoodplanet / PROBLEM DESCRIPTOIN
Last active December 29, 2015 16:09
MindMap project, edit page problem.
INTRO: Hi, I'm Peter Himmelreich (averygoodplanet@gmail.com), a software school student, a Node NOOB, and am "stuck" with a problem on my project for the Nashville Software School. I've spent 4+hrs trying to resolve the problems through stackoverflow and other internet articles without progress. Any help is greatly appreciated--thanks!
..* HOW TO CONTACT ME: averygoodplanet@gmail.com
WHERE MY CODE IS: https://github.com/averygoodplanet/MindMap
DESIRED BEHAVIOR:
//Leading up to problem issue:
1. clone repo
2. start up redis ('redis-server'), mongo ('startmongo', 'mongo'), and 'supervisor app.js'