Skip to content

Instantly share code, notes, and snippets.

@vkovalskiy
vkovalskiy / rzd-vek-registry.json
Created March 24, 2019 09:18
legacy vet registry sample
{
"displayName": "Комплект документов от НУЗ ДКБ ОАО \"РЖД\" на ст.Чита-2 к ПЧ-4 за период с 2019-03-01 по 2019-03-23",
"documents": [
{
"name": "rzd-vek-registry-statement-v0",
"displayName": "Акт выполненных работ",
"description": "Акт выполненных работ по источникам",
"content": {
"name": "123",
"date": "23 марта 2019 г.",
@vkovalskiy
vkovalskiy / script.sh
Created August 9, 2012 07:44
IE on Mac (using virtual box)
curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | bash
@vkovalskiy
vkovalskiy / LiveCollection.js
Created March 1, 2012 08:02 — forked from gordonbrander/LiveCollection.js
Backbone Live Collections w/ Streaming and Automatic Duplicate Handling
var LiveCollection = (function (_, Backbone) {
var Collection = Backbone.Collection;
// Define a Backbone Collection handling the details of running a "live"
// collection. Live collections are expected to handle fetching their own
// data, rather than being composed from separate models.
// They typically add new models instead of resetting the collection.
// A custom add comparison makes sure that duplicate models are not
// added. End result: only new elements will be added, instead
// of redrawing the whole collection.
//
@vkovalskiy
vkovalskiy / example.cs
Created October 18, 2011 00:29
TNAPS Blog - Refactoring and Obfuscation of reflection code
public class SimpleClass
{
private readonly string theValue;
public SimpleClass(string value)
{
theValue = value;
}
public string Value