I hereby claim:
- I am hellogerard on github.
- I am hellogerard (https://keybase.io/hellogerard) on keybase.
- I have a public key whose fingerprint is C4A1 AA18 EDF3 05A2 735F 8BCF 00F2 8592 CE51 9826
To claim this, I am signing this object:
/* eslint-disable import/no-unresolved, indent */ | |
import React from 'react'; | |
import { ScrollView } from 'react-native'; | |
import { gql, graphql, ApolloProvider } from 'react-apollo'; | |
import { storiesOf } from '@storybook/react-native'; | |
import { compose, withStateHandlers, withProps, branch, renderNothing } from 'recompose'; | |
import { get } from 'lodash'; | |
import store from '/app/store'; | |
import client, { networkInterface } from '/app/client'; |
/* eslint-disable no-console */ | |
import _ from 'lodash'; | |
// Drop this into a component that wastes time according to Perf.printWasted() | |
// to find out what state/props should be preserved. Once it says "Update | |
// avoidable!" for {state, props}, you should be able to drop in | |
// React.addons.PureRenderMixin or React.PureComponent. | |
// | |
// From: http://benchling.engineering/deep-dive-react-perf-debugging/ |
const animal = { | |
type: 'animal', | |
talk() { | |
alert('Hello, world!'); | |
}, | |
move() { | |
alert(`${this.name} the ${this.type} moved forward`); | |
} | |
}; |
# | |
# Using 'node-csv-npm' meteorite package | |
# | |
fs = Npm.require 'fs' | |
Meteor.startup -> | |
# LOAD ITEMS |
// I need to integrate my company's meteor app with a 3rd party legacy application. Both apps will operate independently, but need to perform CRUD on the legacy datasource. Is there a way to use a REST api built on the legacy system as a datasource in the meteor app? | |
//Basically I'm looking to do something like the below pseudocode: | |
Meteor.publish("items", function() { | |
HTTP.get('https://legacy.app.url/api/items',{ },function(err, items){ | |
return items; | |
//Or return items.toMeteorCollection() | |
}) | |
}); |
# Our minimongoid 'List' class, wrapping the 'lists' Meteor.Collection | |
# (runs on server & client). If not using minimongoid, you could simply | |
# on the server & client use: | |
# | |
# Lists = new Meteor.Collection 'lists' | |
class @List extends Minimongoid | |
@_collection: new Meteor.Collection 'lists' |
<head> | |
<title>cow</title> | |
</head> | |
<body> | |
{{> hello}} | |
</body> | |
<template name="hello"> | |
<h1>Hello World!</h1> |
I hereby claim:
To claim this, I am signing this object: