Skip to content

Instantly share code, notes, and snippets.

View possibilities's full-sized avatar

Mike Bannister possibilities

View GitHub Profile
∴ cat hosts ~/code/boxes master@03a9a38 ✗
[vagrant]
laura ansible_ssh_host=10.5.5.5 ansible_ssh_user=vagrant ansible_ssh_private_key_file=/Users/mike/.vagrant.d/insecure_private_key
mike@boof
∴ ansible-playbook laura.yml -i hosts --limit vagrant ~/code/boxes master@03a9a38 ✗
PLAY [default] ****************************************************************
skipping: no hosts matched
TASK: [dev | shell echo usermod -aG docker $USER] *****************************
changed: [default] => {"changed": true, "cmd": "echo usermod -aG docker $USER ", "delta": "0:00:00.001167", "end": "2014-04-15 05:22:34.615407", "item": "", "rc": 0, "start": "2014-04-15 05:22:34.614240", "stderr": "", "stdout": "usermod -aG docker root"}
@possibilities
possibilities / test.html
Last active December 20, 2015 22:48 — forked from anonymous/test.html
<template name="helper_test">
{{#each test_objects}}
<p>Object: {{helper-test this}}</p>
{{/each}}
</template>
(function () {
Backbone.syncWithoutUpload = Backbone.sync
Backbone.syncWithUpload = function(method, model, options) {
// Create iframe
var iframe_id = 'file_upload_iframe_' + Date.now()
, iframe = jQuery('<iframe id="' + iframe_id + '" name="' + iframe_id + '" ></iframe>').hide()
var toForm = function(object, nested) {
inputs = _.map(object,
function(attr, key) {

Seven Principles of Meteor

  • Data on the Wire. Don't send HTML over the network. Send data and let the client decide how to render it.

  • One Language. Write both the client and the server parts of your interface in JavaScript.

  • Database Everywhere. Use the same transparent API to access your database from the client or the server.

  • Latency Compensation. On the client, use prefetching and model simulation to make it look like you have a zero-latency connection to the database.

Talk

Why I got interested Meteor

Guiding principals

Demo

Build Hipchat clone (aka backup business model for Versal)

Git For People Who Want To Git

Terms

Working tree All uncommited changes

Staging area Uncommited changes you've told git you want to include in a commit

Branches

> mrt -p 5555 ~/work/m/tmp/js-yaml 1.9.3p0
Stand back while Meteorite does it's thing
Installing Meteor
branch: https://github.com/meteor/meteor.git#master
Installing smart packages
{
"meteor": {
"branch": "auth",
"patches": [
"https://github.com/meteor/meteor/pull/334.patch"
]
},
"packages": {}
}