Skip to content

Instantly share code, notes, and snippets.

@fride
fride / keybase.md
Last active November 16, 2020 15:00
keybase.md

Keybase proof

I hereby claim:

  • I am fride on github.
  • I am fride (https://keybase.io/fride) on keybase.
  • I have a public key ASClM37AGArdKNn1R6FA1MbYaTi0o7XIlUJnUek6dz5p9Ao

To claim this, I am signing this object:

@fride
fride / find-java.ps1
Created September 24, 2019 07:30 — forked from se35710/find-java.ps1
PowerShell script to locate Java on Windows, optionally sets JAVA_HOME and JRE_HOME.
<#
.SYNOPSIS
Locates Java versions and optionally sets JAVA_HOME and JRE_HOME.
.DESCRIPTION
The Find-Java function uses PATH, JAVA_HOME, JRE_HOME and Windows Registry to retrieve installed Java versions.
If run with no options, the first Java found is printed on the console.
.PARAMETER Vendor
Selects Java vendor, currently supports Oracle, OpenJDK and IBM. Defaults to Any.
.PARAMETER Architecture
What processor architecture to match. Valid options are 32, 64, Match and All. Match detects what integer size is used for the PowerShell process, and matches the architecture. If Wow64 is available, 64 bit versions of Java are selected first.
alias gbr='git for-each-ref --sort="-authordate:iso8601" --format=" %(color:green)%(authordate:iso8601)%09%(color:white)%(refname:short)" refs/heads'
f(events) -> state
match f(state, event) -> state
f(state, command) -> events
@fride
fride / gist:9247804
Created February 27, 2014 10:34 — forked from cvogt/gist:9239494
// Please comment in case of typos or bugs
import scala.slick.driver.H2Driver._
val db = Database.for...(...)
case class Record( ... )
class Records extends Table[Record](...){
...
def * = ... <> (Record.tupled,Record.unapply)
// place additional methods here which return values of type Column