We've got a lot of choices for how we implement TrivialModels. This is my attempt to make it through some of them.
import { Model, types, drivers } from 'trivialmodels';
class UserModel extends Model
<!---------------------------------------------------------------------------------------------------------------------> | |
<!-- App --> | |
<!---------------------------------------------------------------------------------------------------------------------> | |
<template> | |
<div id="app"> | |
<site-header></site-header> | |
<router-view></router-view> | |
</div> | |
</template> |
const path = require('path'); | |
const cwd = process.cwd(); | |
module.exports = { | |
"includePaths": [ | |
path.resolve(cwd, 'node_modules') | |
] | |
}; |
//---------------------------------------------------------------------------------------------------------------------- | |
/// A simple template loader for Vue components (browserify or electron app) | |
/// | |
/// @module | |
//---------------------------------------------------------------------------------------------------------------------- | |
var fs = require('fs'); | |
var path = require('path'); | |
var Vue = require('../vendor/vue/dist/vue'); |
<<YOUR_URL_HERE>>
in docker-compose.yml
and <<YOUR_PROJECT_NAME_HERE>>
in update.sh
../update.sh
.From this point onward, you just run ./update.sh
whenever you want to update your docker image. Alternatively, you can put the update script in a cron job, and update it however often you want.
//---------------------------------------------------------------------------------------------------------------------- | |
// General | |
//---------------------------------------------------------------------------------------------------------------------- | |
// For the most part, it will look like javascript | |
var foo = "bar"; | |
var bar = "foo"; | |
if(foo == "baz") | |
{ |
// --------------------------------------------------------------------------------------------------------------------- | |
// PromiseProxy - A proxy object that wraps a promise, and exposes `pending`, `result` and `error` properties. This is | |
// most useful when setting results of promises on the scope directly, so you can work with them in your templates. | |
// | |
// @module promise-proxy.js | |
// --------------------------------------------------------------------------------------------------------------------- | |
function PromiseProxyFactory(promise) | |
{ | |
var proxy = { |
These are the test files required to reproduce the issues found rendering VectorImage layers on Retina iPads. In short, the layers do not render.
In order to reproduce, you must have a 4th gen iPad (tested) or newer (not tested). You then should simply open the test site in safari, and you will not see the VectorImage layer render.
This code is taken from: http://openlayers.org/en/v3.0.0/examples/image-vector-layer.html.
%% @doc A module for working with vectors. | |
-module(vector). | |
% ------------------------------------------------------------------------- | |
-export([]). | |
-record(vector, { | |
x :: float(), |