Skip to content

Instantly share code, notes, and snippets.

@nemoo
nemoo / test.scala
Created April 16, 2024 12:22
Scala cli slick blocking postgres examples
//> using dep com.github.takezoe::blocking-slick:0.0.15-RC1
//> using dep org.postgresql:postgresql:42.7.3
// To run, first start a database: docker run -it -p 5432:5432 -e POSTGRES_PASSWORD=secret -e POSTGRES_DB=playslickexample postgres
import com.github.takezoe.slick.blocking.BlockingPostgresDriver.blockingApi.*
import slick.jdbc.JdbcBackend
case class Project(id: Long, name: String)
@nemoo
nemoo / Gitwebmarkdown
Created October 25, 2014 12:24
Tampermonkey script for chrome to display README.md files rendered as html from markdown in gitweb
// ==UserScript==
// @name Gitwebmarkdown
// @version 0.1
// @description renders readme files in markdown
// @include http://yourserverhere.com/git/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js
// @require http://cdnjs.cloudflare.com/ajax/libs/showdown/0.3.1/showdown.min.js
// ==/UserScript==
var converter = new Showdown.converter();
@nemoo
nemoo / mavanagaiata_sha1_2_manifest_pom_fragment.txt
Created July 5, 2012 13:22
using mavanagaiata to write git sha1 to manifest.fm
// these are fragments of my maven pom that extract the sha1 hash from my git repo and write it to manifest file in the created war.
.
.
.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>