Skip to content

Instantly share code, notes, and snippets.

ready(function(model) {
app.on('render', function(ctx) {
// Do your FB and Google+ init here - read more about it (the render event) here: https://github.com/codeparty/derby/commit/bbc33f8b03b7df5c8c070e93ac387971b79b3a98 (first init) and here: https://github.com/codeparty/derby/commit/a1376e57fee148ef3677d5a2aef02626b32ccbc8 (update and more specifics of how it can be used) as well as the History.md for 0.3.11: https://github.com/codeparty/derby/blob/master/History.md
});
});
expressApp.post('/', function( req, res, next ) {
var
model = req.getModel();
model.fetch(
store.query('people').login(req.body),
function( err, scoped_user ) {
var
form.onPart = function(part) {
if (!part.filename) {
// let formidable handle all non-file parts
incomingForm.handlePart(part);
return false;
}
client.putStream(part, part.filename, {'Content-Length': form.bytesExpected, 'Content-Type': part.mime}, function() {
console.log('uploaded?');
});
var app = require('derby').createApp(module)
;
app.get('/*', function(page, model, params) {
model.set('_page.unplannedOrder', [{"id":"1"}, {"id":"2"}, {"id":"3"}]);
page.render('');
});
app.enter('/*', function (model) {
model.remove('_page.unplannedOrder', 0);
<Body:>
<ul>{#each _page.unplannedOrder as :row}<li style="{#if _page.selected[:row.id]}background: red;{/}">{:row.id}</li>{/}</ul>
<ul>{#each _page.unplannedOrder as :row}<li style="{#if multiplePartPath(_page.selected, :row.id)}background: red;{/}">{:row.id}</li>{/}</ul>
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
source "$(dirname $0)/../common/functions"
dokku_log_info1 "The different text for the different plugins"
@cjblomqvist
cjblomqvist / share\lib\client\doc.js
Created October 1, 2015 14:28
Fixes issue with document undefined?
var types = require('../types').ottypes;
var emitter = require('./emitter');
/**
* A Doc is a client's view on a sharejs document.
*
* It is is uniquely identified by its `name` and `collection`. Documents
* should not be created directly. Create them with Connection.get()
*
*
"dependencies": {
"async": "^1.5.0",
"body-parser": "^1.14.1",
"chalk": "^1.1.1",
"coffee-script": "^1.10.0",
"coffeeify": "^1.1.0",
"compression": "^1.6.0",
"connect-mongo": "^0.8.2",
"cookie-parser": "^1.4.0",
"d-bootstrap": "git://github.com/cjblomqvist/d-bootstrap.git#npm-3.x",
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ITHS1._3
{
class Program
{
/***********************************************************************************************
* User Configuration.
**********************************************************************************************/
/** Map relative paths to URLs. */
const map: any = {
};
/** User packages configuration. */
const packages: any = {
};