Skip to content

Instantly share code, notes, and snippets.

xaralis xaralis

Block or report user

Report or block xaralis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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:

View map.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@xaralis
xaralis / fix-baseline.js
Created Jul 31, 2018
Prevent baseline shift for objects with unknown height
View fix-baseline.js
/**
* 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).
@xaralis
xaralis / elasticsearch_started
Last active Aug 29, 2015
Elastic search v Djangu česky
View elasticsearch_started
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
You can’t perform that action at this time.