This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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> |