Skip to content

Instantly share code, notes, and snippets.

@ttldtor
Created April 3, 2023 14:50
Show Gist options
  • Save ttldtor/e402c4f6db7419c8e2f6547acab3504e to your computer and use it in GitHub Desktop.
Save ttldtor/e402c4f6db7419c8e2f6547acab3504e to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
<?xml version="1.0" encoding="UTF-8"?>
<svg width="210mm" height="297mm" version="1.1" viewBox="0 0 210 297" xmlns="http://www.w3.org/2000/svg">
<defs>
<filter id="a" x="-.026646" y="-.09163" width="1.0533" height="1.1833" color-interpolation-filters="sRGB">
<feTurbulence baseFrequency="0.1" numOctaves="5" result="result1" type="fractalNoise"/>
<feGaussianBlur result="result2" stdDeviation="2"/>
<feDisplacementMap in="SourceGraphic" in2="result2" scale="50" xChannelSelector="R" yChannelSelector="B"/>
</filter>
</defs>
<text x="15.327163" y="87.33593" fill="#000000" fill-opacity=".99655" filter="url(#a)" font-family="'Cascadia Mono PL'" font-size="4.2333px" stroke-width=".26458" xml:space="preserve"><tspan x="15.327163" y="87.33593"><tspan fill="#512bd4" fill-opacity=".99655">auto</tspan> endpoint = DXEndpoint::newBuilder()</tspan><tspan x="15.327163" y="92.67411"> -&gt;withProperty(<tspan fill="#512bd4">"dxfeed.address"</tspan>, <tspan fill="#512bd4">"demo.dxfeed.com:7300"</tspan>)</tspan><tspan x="15.327163" y="98.012291"> -&gt;build();</tspan><tspan x="15.327163" y="103.35048"><tspan fill="#512bd4">auto</tspan> subscription = endpoint-&gt;getFeed()-&gt;createSubscription(Quote::type);</tspan><tspan x="15.327163" y="108.68866">subscription-&gt;addEventListener([](<tspan fill="#512bd4">auto</tspan>&amp;&amp; events) {</tspan><tspan x="15.327163" y="114.02684"> <tspan fill="#512bd4">for</tspan> (<tspan fill="#512bd4">auto</tspan>&amp;&amp; e : events) {</tspan><tspan x="15.327163" y="119.36502"> std::cout &lt;&lt; e &lt;&lt; <tspan fill="#512bd4">"\n"</tspan>;</tspan><tspan x="15.327163" y="124.70321"> }</tspan><tspan x="15.327163" y="130.04138">});</tspan><tspan x="15.327163" y="135.37958">subscription-&gt;addSymbols({<tspan fill="#512bd4">"AAPL"</tspan>});</tspan></text>
</svg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment