Skip to content

Instantly share code, notes, and snippets.

View yoamomonstruos's full-sized avatar

Tom Bates yoamomonstruos

View GitHub Profile
@yoamomonstruos
yoamomonstruos / index.html
Created December 2, 2016 19:08 — forked from d3noob/.block
Simple vertical tree diagram using v4
<!DOCTYPE html>
<meta charset="utf-8">
<style> /* set the CSS */
.node circle {
fill: #fff;
stroke: steelblue;
stroke-width: 3px;
}

Keybase proof

I hereby claim:

  • I am yoamomonstruos on github.
  • I am yoamomonstruos (https://keybase.io/yoamomonstruos) on keybase.
  • I have a public key whose fingerprint is 8CD2 DF3E 6F3C A2C0 0095 7576 8A0D 0BE1 1BE9 D236

To claim this, I am signing this object:

function getFrontMatter(file) {
return new Promise((resolve, reject) => {
readFile(join(__dirname, '../pages', file), (error, content) => {
if (error) return reject(error);
let doc = fm(content.toString())
resolve(doc);
});
})
}
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import * as BoardsActions from '../actions/boards-actions';
import BoardList from '../components/boardList';
class Boards extends Component {
constructor(props) {
@yoamomonstruos
yoamomonstruos / model.js
Created March 23, 2015 16:13
Meteor Model
// An Animal class that takes a document in its constructor
Animal = function (doc) {
_.extend(this, doc);
};
_.extend(Animal.prototype, {
makeNoise: function () {
console.log(this.sound);
}
});
@yoamomonstruos
yoamomonstruos / tableview.js
Created December 23, 2014 13:55
TableView.js
var TableView = {
setup: {
collection: function () {
var collection = this.data.collection || this.data.settings.collection || this.data,
filtration = this.data.crossfilter,
filters = this.data.filters.get() || {},
_this = this,
result;
if (!(collection instanceof Meteor.Collection) && _.isFunction(collection.fetch)) {

CSS Styleguide

Lets try to stick to these rules which have been adapted for our needs from Github's styleguide.

Spacing

  • Use soft-tabs with a two space indent. Spaces are the only way to guarantee code renders the same in any person's environment.
  • Put spaces after : in property declarations.
  • Put spaces before { in rule declarations.
@yoamomonstruos
yoamomonstruos / Requirements.md
Last active August 29, 2015 14:04
Recorder Directive
bower install --save Recorderjs

Then change line 3 in recorder.js

  var WORKER_PATH = 'bower_components/Recorderjs/recorderWorker.js';
// Session.setDefault('sidebar-view-state', null);
// Session.setDefault('sidebar-drawer-state', null);
// Session.setDefault('sidebar-sub-drawer-state', null);
Carts = new Meteor.Collection('carts');
Products = new Meteor.Collection('products');
Payments = new Meteor.Collection('payments');
Meteor.methods({ });
{
"color_scheme": "Packages/User/base16-ocean.dark (SL).tmTheme",
"create_window_at_startup": false,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
"*.lock",
".DS_Store"
],