Skip to content

Instantly share code, notes, and snippets.

Márton Salomváry salomvary

Block or report user

Report or block salomvary

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
@salomvary
salomvary / datetime.java
Last active Feb 10, 2020
Java 8 Date and Time Parsing and Formatting Microtutorial
View datetime.java
import java.time.format.DateTimeFormatter;
import java.time.Instant;
import java.time.ZonedDateTime;
import java.time.ZoneId;
import java.time.ZoneOffset;
Instant.now();
// java.time.Instant = 2015-08-13T09:28:27.141Z
DateTimeFormatter.ISO_INSTANT.format(Instant.now());
View untitled.html
<!doctype html>
<html>
<head>
<title>Untitled</title>
</head>
<body>
</body>
</html>
@salomvary
salomvary / gb-vs-uk.markdown
Last active Jan 21, 2019
TL;DR: GB vs. UK
View gb-vs-uk.markdown

Great Britain, United Kingdom and other related stuff

Great Britain

  • Great Britain is an island in Europe.
  • Great Britain refers geographically to the island of Great Britain, politically to England, Scotland and Wales in combination.

United Kingdom

  • The United Kingdom of Great Britain and Northern Ireland, commonly known as the United Kingdom (UK) or Britain, is a sovereign state in Europe [...]
@salomvary
salomvary / html5.html
Created Nov 9, 2011
minimal html5 boilerplate
View html5.html
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title></title>
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
View Is Gmail slow in Firefox.markdown

Is Gmail slow in Firefox?

I recently ranted about Gmail being slow in Firefox and decided to investigate and support my claim with numbers.

Here is a video illustrating the perceived speed (I could not capture how slow this sometimes actually gets but still looks slow): https://www.youtube.com/watch?v=yu3KMki-9_w

My perceived annoying slowness looks like this:

  • Open a new Firefox tab with gmail.com
@salomvary
salomvary / add-all.sh
Created Dec 16, 2014
Add all jvms to jenv on Mac
View add-all.sh
#!/bin/bash
/usr/libexec/java_home -V 2>&1 1>/dev/null |
tail -n +2 |
awk -F $'\t' '{ print $3 }' |
xargs -n 1 jenv add
View QueryBuilderTest.java
import com.datastax.driver.core.querybuilder.Select;
import org.junit.Test;
import static com.datastax.driver.core.querybuilder.QueryBuilder.eq;
import static com.datastax.driver.core.querybuilder.QueryBuilder.select;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.junit.Assert.assertThat;
public class QueryBuilderTest {
@salomvary
salomvary / example.scala
Created Dec 19, 2017
Parallel Composition of Scala Futures
View example.scala
import scala.concurrent.Future
import scala.concurrent.ExecutionContext.Implicits.global
case class Author(id: Long, name: String)
case class Publication(id: Long, authorId: Long, title:String)
case class AuthorPublications(author: Author, publications: List[Publication])
def findAuthor(query: String): Future[Long] = ???
@salomvary
salomvary / continuous.md
Last active Oct 4, 2017
Continuous delivery vs integration vs. deployment
View continuous.md

"Continuous delivery (CD) is a software engineering approach in which teams produce software in short cycles, ensuring that the software can be reliably released at any time."

"In software engineering, continuous integration (CI) is the practice of merging all developer working copies to a shared mainline several times a day."

"Continuous deployment means that every change is automatically deployed to production. Continuous delivery means that the team ensures every change can be deployed to production but may choose not to do it, usually due to business reasons. In order to do continuous deployment one must be doing continuous delivery."

You can’t perform that action at this time.