This file contains 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(); |
This file contains 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 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 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 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 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 exec = require('child_process').exec; | |
var sqlAdapters = ['mysql', 'sqlite', 'postgres']; | |
var utils = require('utilities'); | |
function noop() {} | |
function getAdapter() | |
{ |
This file contains 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
rivets.formatters['!'] = function(value) | |
{ | |
return !value; | |
}; | |
rivets.formatters.eq = function(value, args) | |
{ | |
return value === args; | |
}; | |
rivets.formatters.neq = function(value, args) | |
{ |
This file contains 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
// define constructor | |
function User() { | |
} | |
// define prototype using "this" | |
User.prototype = new (function() { | |
this.name = 'new User'; | |
var pass = 'secret' | |
This file contains 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
''' | |
This script fixes manipulator types in blends that have been created with XPlane2Blender <= 3.20.6. | |
Usage: Select the objects with wrongly assigned manipulator types and then run this script in Blender's text-editor. | |
''' | |
import bpy | |
for object in bpy.context.selected_objects: | |
if object.xplane.manip.enabled: | |
if object.xplane.manip.type == 'command': |
This file contains 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
/* | |
* Geddy JavaScript Web development framework | |
* Copyright 2112 Matthew Eernisse (mde@fleegix.org) | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
NewerOlder