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
using System; | |
using System.Collections.Generic; | |
using MessagePack; | |
using MessagePack.Formatters; | |
namespace castt | |
{ | |
public class WithString | |
{ | |
public string X { get; set; } |
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
function createSettersProxy(string_name, object_setters, function_proxy) | |
{ | |
Object.keys(object_setters).forEach((property) => { | |
let descriptor = Object.getOwnPropertyDescriptor(object_setters, property); | |
if (typeof descriptor.set === 'function' | |
&& property.indexOf("_orig_") < 0) | |
{ | |
// console.log("set is ", property); | |
let pxy_name = property +"_orig_"; |
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
* AD-A180 901 | |
* NOTES ON A PARACHUTE OPENING FORCE | |
* ANALYSIS APPLIED TO A VERTICAL | |
* TOWARD-THE-EARTH TRAJECTORY | |
* BY WILLIAM P. LUDTKE | |
* UNDERWATER SYSTEMS DEPARTMENT | |
* 28 MAY 1987 | |
* inputs: | |
* 1 |
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
import bpy | |
import string | |
import mathutils | |
from mathutils import * | |
from math import radians, pi | |
# https://docs.blender.org/api/blender_python_api_current/bpy.types.MeshVertex.html#bpy.types.MeshVertex | |
# https://docs.blender.org/api/blender_python_api_current/bpy.types.Mesh.html | |
# https://docs.blender.org/api/blender_python_api_current/mathutils.html | |
# https://docs.blender.org/api/blender_python_api_current/bpy.types.Object.html#bpy.types.Object | |
def write_some_data(context, filepath, use_some_setting): |
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
// exports.some = "eat" | |
var fs = require('fs'); | |
var diagError = function() | |
{ | |
var line = "", err = new Error(); | |
for (var i = 0; i < arguments.length; i++) { | |
line += (i==0?"":"; ") + | |
(typeof arguments[i] === "function" ? arguments[i].toString() |
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
/*получение 4-х точек для построения диаграммы растяжений*/ | |
function calc_mat_inner() | |
{ | |
this.sigma_p = this.sigma_p_div_sigma_b * this.sigma_b; | |
this.epsilon_p = this.sigma_p/this.E; | |
this.epsilon_p = this.epsilon_p * 100; // delta=> % | |
this.epsilon_s = 0.2 + this.epsilon_p; | |
} | |
function print_points() |
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
function toxy(num){ | |
var strxy="x"; | |
for(var i=0;i<num;i++){ | |
strxy+="y"; | |
} | |
strxy+="z"; | |
return strxy; | |
} |
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
function toxy(num){ | |
var strxy="x"; | |
for(var i=0;i<num;i++){ | |
strxy+="y"; | |
} | |
strxy+="z"; | |
return strxy; | |
} |
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
var koid = {}; | |
var koi = [ | |
[0xC1, "а"], | |
[0xC2, "б"], | |
[0xD7, "в"], | |
[0xC7, "г"], | |
[0xC4, "д"], | |
[0xC5, "е"], | |
[0xA3, "ё"], | |
[0xD6, "ж"], |
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
var Cc = require("chrome").Cc; | |
var Ci = require("chrome").Ci; | |
var SERVICES_COOKIE = Cc["@mozilla.org/cookiemanager;1"].getService(Ci.nsICookieManager2); | |
this.cookies = ""; | |
var enumc = SERVICES_COOKIE.getCookiesFromHost("*.example.com"); | |
while (enumc.hasMoreElements()) | |
{ | |
var cookie = enumc.getNext().QueryInterface(Ci.nsICookie2); |
NewerOlder