Skip to content

Instantly share code, notes, and snippets.

View xaralis's full-sized avatar

xaralis xaralis

  • Mediaboard
  • Pardubice
View GitHub Profile
@xaralis
xaralis / elasticsearch_started
Last active August 29, 2015 14:09
Elastic search v Djangu česky
you@computer:~$ elasticsearch --config=/usr/local/opt/elasticsearch/config/elasticsearch.yml
[2014-11-10 10:41:49,409][INFO ][node ] [Toad-In-Waiting] version[1.3.4], pid[99851], build[a70f3cc/2014-09-30T09:07:17Z]
[2014-11-10 10:41:49,411][INFO ][node ] [Toad-In-Waiting] initializing ...
[2014-11-10 10:41:58,357][INFO ][node ] [Toad-In-Waiting] initialized
[2014-11-10 10:41:58,358][INFO ][node ] [Toad-In-Waiting] starting ...
[2014-11-10 10:41:58,491][INFO ][transport ] [Toad-In-Waiting] bound_address {inet[/127.0.0.1:9300]}, publish_address {inet[/127.0.0.1:9300]}
[2014-11-10 10:41:58,511][INFO ][discovery ] [Toad-In-Waiting] xaralis/oIhw_OW3Trim_30_TOz_Mw
[2014-11-10 10:42:01,527][INFO ][cluster.service ] [Toad-In-Waiting] new_master [Toad-In-Waiting][oIhw_OW3Trim_30_TOz_Mw][matrix][inet[/127.0.0.1:9300]], reason: zen-disco-join (elected_as_master)
[2014-11-10 10:42:01,558][INFO ][http
@xaralis
xaralis / fix-baseline.js
Created July 31, 2018 09:31
Prevent baseline shift for objects with unknown height
/**
* This function will augment arbitrary block objects not to break baseline text
* flow if they have height that is not a straight mutiple of baseline grid size.
* It is primarily meant for images which have arbitrary height that
* will break the baseline flow of text that follows after them.
*
* Imagine you have baseline grid of 16px and image has height of 72px. This
* would make all the trailing text shifted against baseline by 8px (72 - 16 * 4 = 8).
*
* For images, this function will set their height to a integer rem value (floored).
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xaralis
xaralis / keybase.md
Created January 4, 2019 11:32
Keybase claim

Keybase proof

I hereby claim:

  • I am xaralis on github.
  • I am filipvarecha (https://keybase.io/filipvarecha) on keybase.
  • I have a public key ASCODVK5Y6k6OStLeQIJmdiC6PwABVlPQA6cVJ7o-W16-go

To claim this, I am signing this object:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.