Skip to content

Instantly share code, notes, and snippets.

View brendonlamb's full-sized avatar

Brendon Lamb brendonlamb

View GitHub Profile
@awatson1978
awatson1978 / gist:2f73120565f295647590d2836e56e4df
Created August 28, 2016 14:40
Rendering Blaze into a React Template
http://stackoverflow.com/questions/36269581/meteor-rendering-a-blaze-template-within-a-react-template
To render blaze from react, you make a wrapper class:
```
AccountsWrapper = React.createClass({
componentDidMount() {
this.view = Blaze.render(Template.Accounts,
React.findDOMNode(this.refs.container));
},
@bretton
bretton / lightning-maps.md
Last active June 4, 2024 12:36
Visualisers of the Lightning Network (and some other explorers)

A (mostly) visual collection of the Lightning Network

Disclaimer

Network views tend to be the view of the network from a single node, or small selection of nodes. They are not complete views of the network. This is impossible to achieve. Even if many node views were combined, it would still be incomplete.

These network views, or network maps, have been termed 'visualisers' by the LN community.

Screenshots may reflect older visual styles, and are dated accordingly.

@bhunjadi
bhunjadi / aggregate.js
Created May 6, 2019 15:18
Meteor aggregate with support for Decimal fields, custom types...
// var MongoDB = NpmModuleMongodb;
var MongoDB = MongoInternals.NpmModules.mongodb.module;
// just beautiful copy paste from mongo_driver.js
// This is used to add or remove EJSON from the beginning of everything nested
// inside an EJSON custom type. It should only be called on pure JSON!
var replaceNames = function (filter, thing) {
if (typeof thing === "object" && thing !== null) {
if (_.isArray(thing)) {