Skip to content

Instantly share code, notes, and snippets.

View zhrebicek's full-sized avatar

Zdeněk Hřebíček zhrebicek

  • Coralogix
  • Brno, Czech Republic
  • 02:01 (UTC +02:00)
  • X @ZHrebicek
View GitHub Profile
@zhrebicek
zhrebicek / http2-example.js
Last active July 15, 2022 11:08
http2 with NodeJs
const http2 = require('http2');
try {
const api_host = "https://localhost:8080";
const client = http2.connect(api_host);
const path = "/my_endpoint";
const api_key = "ffff-eee-ddd";
const write_request = [1, 2, 3, 4, 5];
const req = client.request({
[http2.constants.HTTP2_HEADER_SCHEME]: "https",
### Keybase proof
I hereby claim:
* I am zhrebicek on github.
* I am zdenal (https://keybase.io/zdenal) on keybase.
* I have a public key ASAuiwFaWmnOO6radH04oAho76Icm116QwDVv4989K911Ao
To claim this, I am signing this object:
@zhrebicek
zhrebicek / code-style.xml
Created April 25, 2018 11:04
InteliJ IDEA scala CodeStyle
<code_scheme name="scala-code-style">
<option name="LINE_SEPARATOR" value="&#xA;" />
<option name="RIGHT_MARGIN" value="80" />
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="true" />
<ScalaCodeStyleSettings>
<option name="importLayout">
<array>
<option value="java" />
<option value="javax" />
<option value="_______ blank line _______" />
@zhrebicek
zhrebicek / .scalafmt.conf
Last active September 5, 2018 16:31
InteliJ IDEA scalafmt configuration
style = default
maxColumn = 100
lineEndings = unix
encoding = UTF-8
continuationIndent.defnSite = 4
continuationIndent.extendSite = 2,
align.openParenDefnSite = false
align.openParenCallSite = false
align.tokens = []
newlines.alwaysBeforeTopLevelStatements = false