Skip to content

Instantly share code, notes, and snippets.

console.log('hi!')
@atronov
atronov / widget.js
Created October 16, 2017 16:20
widget
(function(w, n) { w[n]
= w[n] || [];
w[n].push(() => {
w.YandexZen.renderWidget({
clid: ['9110', '9111'], // partner's identifier (for testing purposes only)
container: '.widget-container', // element selector or dom-element where the widget will be inserted
successCallback: function () { // called when the widget is inserted successfully
console.log('widget mount succeed'); // replace function body with your handler or delete this field
},
failCallback: function () { // called in case of problem while widget insertion
Index: common/src/main/java/ru/yandex/ichwill/saas/configuration/CommonContextConfiguration.java
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- common/src/main/java/ru/yandex/ichwill/saas/configuration/CommonContextConfiguration.java (date 1494401068000)
+++ common/src/main/java/ru/yandex/ichwill/saas/configuration/CommonContextConfiguration.java (revision )
@@ -31,9 +31,9 @@
*/
@Import({
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@atronov
atronov / convert.js
Created April 29, 2016 23:38
convert.js
var fs = require('fs');
var page = require('webpage').create();
page.open('file:///' + fs.absolute('input.svg'), function() {
page.render('result.png');
phantom.exit();
});
'use strict';
// https://github.com/domenic/svg2png/blob/master/lib/converter.js
// https://github.com/amir20/phantomjs-node
const phantom = require('phantom'),
fs = require('fs');
const PREFIX = 'data:image/svg+xml;base64,';
const srcDir = '../files/test',
@atronov
atronov / .gitignore
Last active September 24, 2015 14:21
heyyy
node_modules
style.css
@atronov
atronov / app.js
Last active August 29, 2015 14:25 — forked from verkholantsev/shri.js
window.addEventListener("load", function() {
var resultMessage = "";
var defaultName = "Japan";
var name = defaultName; // по умолчанию будет выбрано Japan
var askPopulation = function() {
var message = (resultMessage && resultMessage+"\n") + "Put country or city name";
// Я бы никогда не стал использовать prompt, но так написано в задании =)
name = window.prompt(message, name);
if (name && name.trim().length > 0) {
name = name.trim();