Skip to content

Instantly share code, notes, and snippets.

View shrop's full-sized avatar
👋

Mark Shropshire shrop

👋
View GitHub Profile
@shrop
shrop / console-errors.log
Last active August 29, 2015 14:19
newNotification test
I20150418-10:58:48.236(-4)? jasmine-server-integration: 0 tests passed [33/3474]
W20150418-10:58:48.236(-4)? (STDERR) jasmine-server-integration: 1 tests failed
W20150418-10:58:48.236(-4)? (STDERR) newNotification server method does not generate a new notification for a logged out user
W20150418-10:58:48.236(-4)? (STDERR) Error: [not-authorized]
W20150418-10:58:48.236(-4)? (STDERR) Error: [not-authorized]
W20150418-10:58:48.236(-4)? (STDERR) at [object Object].Meteor.methods.newNotification (app/server/server.js:27:13)
W20150418-10:58:48.237(-4)? (STDERR) at [object Object].methodMap.(anonymous function) (/private/var/folders/jh/fn5ydp4s2z189rgjm3kq84h00000gp/T/meteor-test-run14icpzr/.meteor/local/build/programs/serve
r/packages/meteorhacks_kadira.js:2495:30)
W20150418-10:58:48.237(-4)? (STDERR) at maybeAuditArgumentChecks (/private/var/folders/jh/fn5ydp4s2z189rgjm3kq84h00000gp/T/m
Template.recentNotifications.helpers({
// Check the current notification type for template usage.
notificationType: function (type) {
return this.type === type;
},
// Return set of notifcation cursors.
notifications: function () {
return Notifications.find( {}, { sort: { createdAt: -1 } } );
},
// Helper for comment related notification data.
@shrop
shrop / gist:4da9191a099af2eb77af
Created March 15, 2015 17:59
Meteor exception with template helper
Exception in template helper: editUserProfile@http://localhost:3000/client/views/profile/_userProfile.js?7eeb64c14a8e8bf602d599e52bfc2cd7a3b58d16:10:42
http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:2727:21
http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:1606:21
call@http://localhost:3000/packages/spacebars.js?7f53771c84a2eafac2b561c9796dda0d8af8e7f5:171:23
http://localhost:3000/client/views/profile/template._userProfile.js?891cf501a5ebff6ed0a47465462c90c364ad31c1:12:26
http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:2472:57
http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:1808:20
_withCurrentView@http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:2043:16
viewAutorun@http://localhost:3000/packages/blaze.js?efa68f65e67544b5a05509804bf97e2c91ce75eb:1807:34
_compute@http://localhost:3000/packages/tracker.js?517c8fe8ed6408951a30941e64a5383a7174bcfa:296:3
@shrop
shrop / Template
Last active August 29, 2015 14:16 — forked from patrickml/Template
<template name="journal">
<div class="nav-block"></div>
<nav class="journal-nav">
<ul>
<li>
<a href="#" data-type="Design">Design</a>
</li>
<li>
<a href="#" data-type="Development">Development</a>
</li>
@shrop
shrop / .gitignore
Last active August 29, 2015 14:11
Git Alias Setup for Checking Out Pull Requests from Stash and Github
[alias]
# Checkout Stash pull requests.
spr = !sh -c \"git fetch origin pull-requests/${1}/from:pr/${1}/from && git fetch origin pull-requests/${1}/merge:pr/${1}/merge && git checkout pr/${1}/from\" -
# Checkout Github pull requests.
gpr = !sh -c \"git fetch origin pull/${1}/head:pr/${1} && git checkout pr/${1}\" -
<!-- THEME DEBUG -->
<!-- CALL: theme('html') -->
<!-- FILE NAME SUGGESTIONS:
* html--front.tpl.php
* html--node.tpl.php
x html.tpl.php
-->
➜ twitter-clone git:(class-3) meteor
[[[[[ ~/Projects/Community/twitter-clone ]]]]]
=> Started proxy.
=> Started MongoDB.
I20141107-11:42:46.793(-5)? Kadira: completed instrumenting the app
=> Started your app.
=> App running at: http://localhost:3000/
I20141107-11:42:47.721(-5)? Kadira: successfully authenticated
@shrop
shrop / httpd.conf
Last active August 29, 2015 14:08 — forked from tlattimore/httpd.conf
<Directory />
AllowOverride none
Require all granted
</Directory>
@shrop
shrop / .gitignore
Last active August 29, 2015 14:08 — forked from octocat/.gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@shrop
shrop / gist:71824d3aca6c851fbc57
Created September 9, 2014 11:41
Spectacle frontend install
➜ ~ cd ~/Desktop
➜ Desktop git clone git@github.com:shrop/spectacle-frontend.git
Cloning into 'spectacle-frontend'...
remote: Counting objects: 203, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 203 (delta 2), reused 0 (delta 0)
Receiving objects: 100% (203/203), 111.53 KiB | 0 bytes/s, done.
Resolving deltas: 100% (63/63), done.
Checking connectivity... done.