Skip to content

Instantly share code, notes, and snippets.

View mplatts's full-sized avatar

Matt Platts mplatts

View GitHub Profile
@mplatts
mplatts / _table.scss
Created May 28, 2014 10:16
_table.scss
$table-border: darken($gray-lighter, 10%);
$table-bg: mix($gray-lighter, $white);
.table {
background-color: $table-bg;
border-collapse: separate;
tr > *:first-child {
border-left: solid 1px $table-border;
}
.dropdown
.email
%i.sprites-common-student
{{ email }}
= hb 'if pending' do
%a.resend-invitation{href: "#"} {{t 'organization.teachers.index.resend_invitation'}}
%a.pull-right.show-modal{href: "#", data: {template: 'people/remove_invited_teacher_modal', title: "{{t 'organization.teachers.index.remove_teacher' name=email }}"}}
%i.sprites-common-close
= hb 'else'
@mplatts
mplatts / teams.coffee
Last active August 29, 2015 14:09
collections 1
# lib/collections/teams.coffee
@Teams = new Mongo.Collection('teams')
@mplatts
mplatts / fixtures.coffee
Last active August 29, 2015 14:09
collections 3
# server/fixtures.coffee
if Teams.find().count() == 0
[
{name: 'Barcelona'}
{name: 'Manchester City'}
].forEach (data) -> Teams.insert(data)
@mplatts
mplatts / mongo.sh
Created November 18, 2014 05:29
collections 4
meteor:PRIMARY> db.teams.find()
{ "name" : "Barcelona", "_id" : "DsjnxpH7ZbEgmwrCY" }
{ "name" : "Manchester City", "_id" : "CbbrW3mLcNLK6vSAL" }
@mplatts
mplatts / main.coffee
Created November 18, 2014 05:31
collections 6
# client/main.coffee
Meteor.subscribe 'teams'
@mplatts
mplatts / console.js
Created November 18, 2014 05:32
collections 7
id = Teams.findOne()._id
Teams.update(id, {$set: {name: 'Real Madrid'}})
@mplatts
mplatts / example.js
Created November 18, 2014 05:37
overview 1
if(Meteor.isClient){
//do client stuff
}
@mplatts
mplatts / main.html
Created November 18, 2014 05:41
templates 1
<!-- /client/main.html -->
<head>
<title>Foosboom</title>
</head>
<body>
<h1>Foosboom</h1>
</body>
@mplatts
mplatts / teams.html
Created November 18, 2014 05:41
templates 2
<!-- /client/views/teams.html -->
<template name="teams">
<h3>Teams</h3>
</template>