Skip to content

Instantly share code, notes, and snippets.

View osterkraft's full-sized avatar

Eric Osterman osterkraft

  • Stockholm, Sweden
View GitHub Profile
@tonyxiao
tonyxiao / docheadRoutes.jsx
Created March 10, 2016 23:00
Inject custom dochead into html returned by meteor server. Credit goes to https://github.com/thereactivestack/meteor-react-router-ssr
import React from 'react'
import {IndexRoute, Route} from 'react-router'
import Helmet from 'react-helmet'
const wrap = (Component) => (location, cb) => {
cb(null, Component)
}
const makeHelmet = (info) => {
const {title, description, image, url} = {
@nagelflorian
nagelflorian / circle.yml
Created January 14, 2016 13:04
CircleCI File for Meteor using Velocity with Jasmine and Galaxy for deployment
machine:
node:
version: 0.10.40
pre:
# download if meteor isn't already installed in the cache
- meteor || curl https://install.meteor.com | /bin/sh
post:
- meteor --version
checkout:
@maisano
maisano / RouteTransition.jsx
Last active September 15, 2023 07:29
Using react-motion with react-router
import React, { PropTypes } from 'react';
import { TransitionMotion, spring } from 'react-motion';
/**
* One example of using react-motion (0.3.0) within react-router (v1.0.0-rc3).
*
* Usage is simple, and really only requires two things–both of which are
* injected into your app via react-router–pathname and children:
*
* <RouteTransition pathname={this.props.pathname}>