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': |
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
<?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 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
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
/* | |
* Geddy JavaScript Web development framework | |
* Copyright 2112 Matthew Eernisse ([email protected]) | |
* | |
* 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 | |
* |
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
// 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
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
"use strict"; | |
var exec = require('child_process').exec; | |
var sqlAdapters = ['mysql', 'sqlite', 'postgres']; | |
var utils = require('utilities'); | |
function noop() {} | |
function getAdapter() | |
{ |
OlderNewer