Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View salomvary's full-sized avatar

Márton Salomváry salomvary

View GitHub Profile
@salomvary
salomvary / example.scala
Created December 19, 2017 07:39
Parallel Composition of Scala Futures
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 October 4, 2017 14:29
Continuous delivery vs integration vs. deployment

"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."

const {app, BrowserWindow} = require('electron')
app.on('ready', () => {
const win = new BrowserWindow()
win.loadURL('file://some/local/file.html')
// or
win.loadURL('http://example.com')
})
@salomvary
salomvary / gb-vs-uk.markdown
Last active January 21, 2019 19:11
TL;DR: GB vs. UK

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 / bootstrap-gh-pages.sh
Created February 24, 2016 20:36
Bootstrapping custom GitHub pages
git checkout --orphan gh-pages
git rm -rf .
git show master:README.md > README.md
cat > index.html <<END
---
---
<!doctype html>
<body>
{% capture readme %}{% include_relative README.md %}{% endcapture %}
{{ readme | markdownify }}
@salomvary
salomvary / .ctags
Last active July 11, 2016 14:43
ctags for Ruby and Scala
-R
--languages=ruby
--exclude=.git
@salomvary
salomvary / PageLinks.java
Created October 14, 2015 13:03
PageLinks.java
@salomvary
salomvary / curl-header.sh
Last active September 22, 2015 11:42
curl to print out the value of a given header
$ curl -sI 'http://google.com' | tr -d '\r' | awk 'BEGIN {FS=": "}/^Location/{print $2}'
http://www.google.de/?gfe_rd=cr&ei=JDsBVrqxNs7j8wfo_5OICw
@salomvary
salomvary / leaflet-polyline.markdown
Last active September 15, 2015 21:08
Evaluating Leaflet PolyLine Drawing Plugins

Evaluating Leaflet PolyLine Drawing Plugins

Criteria

  • Small footprint
  • Decent code
  • Active development
  • Touch support
  • Drawing a new line
  • Editing mid-points of an existing line
  • Continuing an existing line
@salomvary
salomvary / .ctags
Last active August 29, 2015 14:27
Ruby for VIM
-R
--languages=ruby
--exclude=.git
--exclude=log