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
{ | |
sequence: "ensembl.sequence", | |
identified: "ensembl.identified", | |
uniprot: [ | |
{ | |
id: "", | |
sequence: "", | |
identified: "", | |
refseq: [ | |
"{refseq_id}", |
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
TransNameUri = function (window, undefined) { | |
var | |
dict = dict = {"\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0451":"yo","\u0436":"j","\u0437":"z","\u0438":"i","\u0439":"y","\u043a":"k","\u043b":"l","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sch","\u044a":"","\u044b":"yi","\u044c":"","\u044d":"e","\u044e":"yu","\u044f":"ya"}, | |
reg1 = /[^0-9a-z\u0430-\u044f\u0451]+/g, | |
reg2 = /[\u0430-\u044f\u0451]/g, | |
defLimit = 50; | |
function replace2 (char) { | |
return dict[char]; |
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
RewriteEngine On | |
Options +FollowSymLinks | |
RewriteEngine On | |
<IfModule mod_charset.c> | |
CharsetRecodeMultipartForms off | |
</IfModule> | |
<IfModule mod_php5.c> |
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
function scrollHappened(wheelDelta:Number):void { | |
/* Этот метод позволяет JS API прокидывать вызов события скрола через ExternalInterface | |
* wheelDelta в JS API может переводиться в приближённый к AS стандарт, | |
* т. е. обычно это будет или -3 или +3, либо другие значения для более быстрой или медленной прокрутки >=+1 или <=-1) | |
* http://help.adobe.com/ru_RU/FlashPlatform/reference/actionscript/3/flash/events/MouseEvent.html#MouseEvent() | |
*/ | |
var e:MouseEvent = new MouseEvent(MouseEvent.MOUSE_WHEEL, true, false, nativeStage.mouseX, nativeStage.mouseY, null, false, false, false, false, wheelDelta); | |
// нужно как-то идентифицировать, что это событие сгенерировано через JS API | |
e.isJS:Boolean = true; | |
nativeStage.dispatchEvent(e); |
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 | |
/** | |
* Разбирает текст СМС ответного сообщения от Yandex Money | |
* с секретным кодом подтверждения. | |
* | |
* Вслучае успешного разбора сообщения | |
* возвращает массив с ключами secret, amount и id | |
* Иначе возаращает FALSE. | |
* |
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
server { | |
listen 80; | |
server_name bad-passport.api.host; | |
charset utf-8; | |
sendfile on; | |
log_not_found off; | |
keepalive_timeout 20; | |
keepalive_requests 50; |
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
const personsDataByProjects = [ | |
// ТСОО | |
[ | |
'MS4g0JzQvtC20LXRgiDQtNC', | |
'MS4g0J7RgtC80LXRh9Cw0LXRgiDQlNC10L3RjCDQt9Cw0YnQuNGC0Ysg0LTQt', | |
'MS4g0JXQtSDQv9GA0LDQt9C00L3QuNC6IDEzJm5ic3A70LDQstCz0YPRgdGC0LA8YnI', | |
'MS4g0JHRi9C70LAg0YHQvtCy0L7QuMyGLCDRgdGC0LDQu9CwINC20LDQstC' | |
], | |
// РЭА |