Skip to content

Instantly share code, notes, and snippets.

View yeputons's full-sized avatar

Egor Suvorov yeputons

  • Saint-Petersburg, Russia
View GitHub Profile
@yeputons
yeputons / runme.cmd
Last active January 3, 2016 18:39
Demonstration of cmd.exe escaping rules
@cmd.exe /s /c "x.cmd ^ ^"
@cmd.exe /s /c "x.cmd ^^ ^^"
@cmd.exe /s /c "x.cmd ^^^ ^^^"
@cmd.exe /s /c "x.cmd ^^^^ ^^^^"
@cmd.exe /s /c "x.cmd ^^^^^ ^^^^^"
@cmd.exe /s /c "x.cmd ^^^^^^ ^^^^^^"
@cmd.exe /s /c "x.cmd ^^^^^^^ ^^^^^^^"
@cmd.exe /s /c "x.cmd ^^^^^^^^ ^^^^^^^^"
@echo.
@cmd.exe /s /c "x.cmd "^" "^""
@yeputons
yeputons / publish-test.html
Created February 2, 2014 14:08
Demonstration of publish-with-relations bug
<head>
<title>publish-test</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
<p>Elements of A:</p>
[[[[[ ~\Documents\reactive-publish-test ]]]]]
=> Meteor server running on: http://localhost:3000/
W20140202-18:23:33.047(4)? (STDERR) C:\Users\Egor Suvorov\Documents\reactive-publish-test\.meteor\local\build\programs\server\boot.js:196
W20140202-18:23:33.191(4)? (STDERR) }).run();
W20140202-18:23:33.192(4)? (STDERR)  ^
W20140202-18:23:33.192(4)? (STDERR) TypeError: Cannot call method 'find' of undefined
W20140202-18:23:33.193(4)? (STDERR)  at Package (packages/reactive-publish\lib\reactive-publish.coffee:15:9)
W20140202-18:23:33.193(4)? (STDERR)  at packages/reactive-publish.js:194:4
W20140202-18:23:33.194(4)? (STDERR)  at packages/reactive-publish.js:201:3
@yeputons
yeputons / reactive-publish-test.html
Last active August 29, 2015 13:55
Reactive-publish-test
<head>
<title>reactive-publish-test</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
<p>Elements of A:</p>
<head>
<title>search-test</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
<h1>Paginated:</h1>
<template name="layout">
<p>Current page = {{currentPage}}</p>
<p><a href="/">Main</a></p>
<p><a href="/notfound">Not found</a></p>
{{yield}}
</template>
<template name="main">
<p>Main page</p>
</template>
<template name="not_found">
<head>
<title>publish-test</title>
</head>
<body>
{{> hello}}
</body>
<template name="hello">
<p>Elements of A: (<a href="#" class="subscr">Subscribe</a>, <a href="#" class="unsubscr">Unsubscribe</a>)</p>
@yeputons
yeputons / smart.json
Created February 21, 2014 17:40
Test application for meteor-publish-composite
{
"packages": {
"publish-composite": {}
}
}
<head>
<title>oplog-test-3</title>
</head>
<body>
{{> serverFacts}}
{{> items}}
</body>
<template name="items">
all: main.exe
main.exe
main.exe: a.o b.o
g++ -o $@ $^
%.o: %.cpp
g++ -o $@ -c $<
a.cpp: message.h