I hereby claim:
- I am wprater on github.
- I am wprater (https://keybase.io/wprater) on keybase.
- I have a public key ASDMvnLkXnA9qP9UWdXaFxRdCZ4E0TWstWmTcAB70oXs9wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # Example Dockerfile | |
| FROM hello-world |
| <link rel="import" href="../google-map/google-map.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; |
| # -*- coding: utf-8 -*- | |
| $:.unshift('/Library/RubyMotion/lib') | |
| require 'motion/project/template/ios' | |
| begin | |
| require 'bundler' | |
| Bundler.require | |
| rescue LoadError | |
| end |
| this.findById(ownerId) | |
| // .lean() | |
| .select('contacts') | |
| .populate('contacts.person', 'id email avatar name nestedModel') | |
| // FIXME feels like we should be able to get nested populations instead | |
| // on building them inside the promise. | |
| // .populate('contacts.person.nestedModel') | |
| .exec() | |
| .then(function (doc) { |
| var radiusEarth = 6372.796924; | |
| var dist = 2.0; | |
| var maxAngle = dist / radiusEarth; | |
| var minAngle = 0.25 / radiusEarth; | |
| var cosdif = Math.cos(maxAngle) - 1; | |
| var fuzzScale = Math.random() * (0.999999 - minAngle) + minAngle; | |
| var scaledDist = Math.acos(fuzzScale * cosdif + 1); |
#How to install node.js on a Google Compute Engine instance
Make sure you have a Google Compute engine account, have a project created and the gcutil command line tool installed.
Since want to ssh without the gcutil tool, you need to a your ssh key to the instance in addition to the already existing google_compute_engine key (used for gcutil).
| class BaseChart | |
| accessors: | |
| width: 100 | |
| height: 100 | |
| _margin: {} | |
| @margin: top: 0, right: 0, bottom: 0, left: 0 | |
| # http://bost.ocks.org/mike/chart/ |
| ({ | |
| xtype: 'list', | |
| flex: 1, | |
| store: 'localEntriesStore', | |
| itemTpl: '{full_name}', | |
| listeners: { | |
| activate: function(list, opts) { | |
| return list.getStore().filterBy(function(rec) { | |
| return rec.get('needs_remote_sync'); | |
| }); |
| // Opt. 1 from resourceful Readme, examples, tests, etc. | |
| var Creature = resourceful.define('creature', function () { | |
| this.string('type'); | |
| }; | |
| // Opt. 2 from other Flatiron project examples | |
| Creature = resourceful.define('creature'); | |
| Creature.property('type', String, { default: "dragon" }); |