Skip to content

Instantly share code, notes, and snippets.

View Chizh's full-sized avatar

Andrey Chizh

  • Retail Rocket
  • Russia Moscow
View GitHub Profile
[
{
"$type": "tStartEvent",
"id": "StartEvent_1",
"incoming": null,
"outgoing": [
"SequenceFlow_1b0wrod"
],
"x": 247.0,
"y": 277.0,
@Chizh
Chizh / .html
Last active October 8, 2017 13:50 — forked from anonymous/.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--[if IE 6 ]><html class="ie ie6 lte6 lte7 lte8 lte9" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7 lte7 lte8 lte9" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8 lte8 lte9" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<!--[if IE 9 ]><html class="ie ie9 lte9>" xmlns="http://www.w3.org/1999/xhtml"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html><!--<![endif]-->
<head><script type="text/javascript" src="/static/js/analytics.js?v=1506980387.0" charset="utf-8"></script>
using MongoDB.Bson;
namespace RetailRocket.PartnerOffice.Controllers
{
using System.Collections.Generic;
using System.Web.Mvc;
public class EmployeesExportController : Controller
{
!function(e, t) {
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.r46v3 = t() : e.r46v3 = t()
}(this, function() {
return function(e) {
function t(i) {
if (r[i])
return r[i].exports;
var n = r[i] = {
i: i,
l: !1,
var rrExitCondition = function(){
var filters = rrLibrary.queryStringObjectByPrefix('f-');
var excludedRequests = ['up1'];
var originalCount = (function(){
var elemNum = document.getElementsByClassName('sm-category__main-sorting_displayed');
if(!elemNum.length) return 0;
var matchNum = elemNum[0].innerHTML.match(/\d+/ig);
if(!matchNum) return 0;
return +matchNum[0];
}());
RetailRocketCallbacks_1461676295658([{
"OldPrice": 0,
"Price": 5690,
"IsAvailable": true,
"IsNew": false,
"Weight": 0,
"ItemId": 1809511,
"CategoryIds": [552],
"Regions": null,
"Params": {
var x = 0;
db.partnerUserEmail.find().forEach(function(doc) {
x++;
db.partnerUserEmail.update({_id:doc._id}, {$unset:{"CustomData":1}})
if (x%1000 == 0)
print(x);
})
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
@Chizh
Chizh / .html
Last active October 1, 2015 14:35
<script type="text/javascript">
(window["rrApiOnReady"] = window["rrApiOnReady"] || []).push(function() {
rrApi.categoryView("Example/Category/Path"); // Full path to current category with slash as a separator, string
retailrocket.categories.post( // Send category data
{
"categoryPath": "Example/Category/Path", // Full path to current category with slash as a separator, string
"url": "http://www.example.com/path/to/categoryPage" // Canonical URL of category page
}
);
});
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Retail Rocket виджеты</title>
<link rel="stylesheet" href="//local.retailrocket.ru/content/css/retailrocket.widget.css">
<script>
var rrPartnerId = "550f12f91e99471c1446d760";
var rrApi = {};
var rrApiOnReady = rrApiOnReady || [];