Skip to content

Instantly share code, notes, and snippets.

View arikon's full-sized avatar

Sergey Belov arikon

  • Yandex
  • Tivat, Montenegro
View GitHub Profile
@arikon
arikon / i-jquery__my-plugin.js
Created February 1, 2014 16:35
jQuery plugin with bem-core
// If you are using borschik to expand links (bem make and enb do this for you)
// you could use this hack for any jQuery plugin found in the wild
modules.define('i-jquery__my-plugin', ['jquery'], function(provide, $){
var jQuery = $,
window = {jQuery: jQuery};
/*borschik:include:path/to/jquery-plugin.js*/
provide($);
});

IV. Реализация денежно-кредитной политики в 2014-2016 годах

IV.1. Политика валютного курса

Банк России в 2014 году продолжит проводить курсовую политику, не препятствуя формированию тенденций в динамике курса рубля, обусловленных действием фундаментальных макроэкономических факторов, неустанавливая каких-либо фиксированных ограничений на уровень курса национальной валюты. При этом в течение данного периода Банк России будет осуществлять постепенное повышение гибкости курсообразования, в том числе путем сокращения объемов интервенций Банка России, направленных на сглаживание колебаний обменного курса рубля, а также увеличения чувствительности границ операционного интервала к объему совершенных Банком России интервенций, тем самым создавая условия для адаптации участников рынка к колебаниям валютного курса, вызванным внешними шоками.

В 2014 году будет завершена работа по созданию условий для перехода крежиму плавающего валютного курса, который предполагает отказ отиспользования операционных ориентиров кур

Keybase proof

I hereby claim:

  • I am arikon on github.
  • I am arikon (https://keybase.io/arikon) on keybase.
  • I have a public key whose fingerprint is 08A6 4DC7 1FDB 809C 6C6C 7687 2E3B 1B52 7AD6 E76E

To claim this, I am signing this object:

@arikon
arikon / 0_reuse_code.js
Last active August 29, 2015 14:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@arikon
arikon / ipv6-ipv4-test.js
Created March 8, 2015 14:08
IPv6 and IPv4 listen test
var http = require('http');
var server = http
.createServer(function(req, res) {
console.log(req.method, req.url);
res.end('Ok!');
})
.listen(9000, '::', function(err) {
err && console.log(err.stack);
console.log(server.address());
@arikon
arikon / config.js
Created March 13, 2015 20:09
Config reader based on node config module
var inherit = require('inherit'),
extend = require('extend');
module.exports = inherit({
__constructor: function(opts, overrides) {
// Remove config module from cache so it could be recreated.
// It's a limitation of the config module.
delete require.cache[require.resolve('config')];
resetEnvVars();
var libxml = require('libxmljs');
var snippetXml = '<snippet><phone>123</phone><car>Ford Mondeo</car></snippet>',
snippetDoc = libxml.parseXmlString(snippetXml),
xml = '<doc id="123"></doc>',
doc = libxml.parseXmlString(xml);
doc.root().addChild(snippetDoc.root());
setTimeout(function(){
<?xml version="1.0" encoding="windows-1251"?>
<root>
<!-- Save this file with windows-1251 encoding! -->
<hello>Привет, товарищ!</hello>
</root>
diff --git a/include/cO3.h b/include/cO3.h
index 4f8ee4c..c3121d7 100644
--- a/include/cO3.h
+++ b/include/cO3.h
@@ -406,6 +406,7 @@ struct cO3 : cScr {
// unzip the downloaded module, validates it and put the dll in place
bool unpackModule(const Str& name, iStream* zipped, bool update=false )
{
+ /*
using namespace zip_tools;
var sys = require('sys'),
libxml = require('o3-xml');
var snippetXml = '<snippet><name>Sergey Belov</name><phone>+71111111111</phone><car>Ford Mondeo</car></snippet>',
snippetDoc = libxml.parseFromString(snippetXml),
xml = '<root><group><doc id="123"/></group></root>',
doc = libxml.parseFromString(xml);
// throws exception
doc.documentElement.selectSingleNode('group/doc').appendChild(snippetNode.documentElement);