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
var EventEmitter = require('events').EventEmitter; | |
var util = require('utilities'); | |
var MockRequest = function () { | |
this.headers = { | |
accept: '*/*' | |
} | |
}; | |
module.exports.MockRequest = MockRequest; |
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
var Application = function () { | |
// allow cross domain XHR | |
this.allowCORS = function() | |
{ | |
this.options = function(req, resp, params) | |
{ | |
if (req.method.toLowerCase() == 'options') { | |
resp.setHeaders(200,{ | |
'Content-Type': 'text/plain', | |
'Access-Control-Allow-Origin': '*', |
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 | |
class DateUtil | |
{ | |
public static $weekday_names = array( | |
1 => 'Montag', | |
2 => 'Dienstag', | |
3 => 'Mittwoch', | |
4 => 'Donnerstag', | |
5 => 'Freitag', |
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
var formidable = require('formidable'); | |
var path = require('path'); | |
var fs = require('fs'); | |
var UploaderException = function(message) | |
{ | |
this.message = message; | |
this.toString = function() | |
{ | |
return 'Uploader error: '+this.message; |
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 older versions of XPlane2Blender. | |
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 == 'delta': |
NewerOlder