Skip to content

Instantly share code, notes, and snippets.

View shrop's full-sized avatar
👋

Mark Shropshire shrop

👋
View GitHub Profile
<!--
The examples below illustrate different ways to make a reactive and nonreactive join between two collections.
We will retrieve in all of them a list of the 10 most popular posts along with their author profile.
More informations are available on: http://journal.gentlenode.com/
Summary:
1. Nonreactive Join #1: Denormalization.
2. Reactive Join #1: Joining on the client. (by calling a publication)
3. Reactive Join #2: Overpublishing. (and joining with data context)
@shrop
shrop / smart.lock
Created September 9, 2014 00:11
smart.lock for spectacle-frontend
{
"meteor": {},
"dependencies": {
"basePackages": {
"iron-router": {},
"famono": {},
"famous-components": {},
"less-bootstrap-3": {},
"font-awesome-4-less": {}
},
@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.
@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 / httpd.conf
Last active August 29, 2015 14:08 — forked from tlattimore/httpd.conf
<Directory />
AllowOverride none
Require all granted
</Directory>
➜ 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
<!-- THEME DEBUG -->
<!-- CALL: theme('html') -->
<!-- FILE NAME SUGGESTIONS:
* html--front.tpl.php
* html--node.tpl.php
x html.tpl.php
-->
@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}\" -
@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 / 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