This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
/* | |
Chainable formatters | |
Usage: | |
function trim(value) { | |
return value.trim(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
/* | |
Usage: | |
require('./promisify_models')(geddy.model); | |
geddy.model.allPromise() | |
.then(function(result) { ... }) | |
.catch(function(err) { throw err; }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Adds a loader method to the model innstance that will automatically populate the property for the assoc after load | |
* Example: this.belongsTo('User') will add a "loadUser" method | |
* @param instance | |
*/ | |
module.exports.improveAssocs = function(instance) | |
{ | |
var model = getModel(); | |
var type = instance.type; | |
var def = model.descriptionRegistry[type]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var metalsmith = require('metalsmith'); | |
var layouts = require('metalsmith-layouts'); | |
var fs = require('fs'); | |
var lorem = fs.readFileSync('./lorem.txt', 'utf8'); | |
var n = 0; | |
// generates a single page |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// initialize the contao framework | |
define('TL_MODE', 'FE'); | |
require('../system/initialize.php'); | |
$cron = new \MetaModelsOpenImmo\Cron(); | |
$cron->run(); |
OlderNewer