Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View rdickert's full-sized avatar

Robert Dickert rdickert

View GitHub Profile
@rdickert
rdickert / meteorHoc.js
Last active May 16, 2018 14:18
Create single-prop HOCs for Meteor
// Creating Meteor HOCs
import { Meteor } from 'meteor/meteor';
import { createContainer } from 'meteor/react-meteor-data';
import React from 'react';
import { compose } from 'recompose';
// Assuming we have a Meteor collection here...
import TodosCollection from '../api/TodosCollection';
@rdickert
rdickert / .eslintrc
Created May 14, 2016 14:20
Meteor ESLint setup
/* Install in a meteor project:
* $ meteor npm install --save-dev eslint eslint-plugin-react eslint-plugin-meteor eslint-config-airbnb
*
* See http://guide.meteor.com/code-style.html
*
* ES Lint rules:
* http://eslint.org/docs/rules/ <- Optionally append the rulename
*/
{
@rdickert
rdickert / curl.md
Created March 9, 2016 23:19 — forked from btoone/curl.md
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
my gist
@rdickert
rdickert / ie9bug.js
Created November 5, 2012 23:03
ie9 bug in Meteor 0.5.0
<head>
<title>ie9bug_test</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
<h1>IE9 bug</h1>