This file contains 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
import sun.misc.Version; | |
import java.sql.*; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; | |
public class PgTest { | |
// Create the function and try to fetch the meta data for it | |
// CREATE FUNCTION empty.ie3() RETURNS TABLE (i int, j int) LANGUAGE sql AS 'SELECT 1, 2'; | |
public static void main(String[] args) { |
This file contains 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
(println "Hello") |
This file contains 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
(defn foo [] | |
(fn [] (println "hello"))) |
This file contains 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
(ns somename) | |
(defn foo1 [] "hello") | |
(defn foo2 [] "world") | |
{ | |
:title "Stupid name" | |
:backend (fn [] (str (foo1) " " (foo2))) | |
:frontend (fn [] ()) | |
:timeout 1000 |
This file contains 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
<html> | |
<head> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script> | |
$(document).ready(function () { | |
$.ajax({ | |
url: 'http://localhost:63342/api/about', | |
dataType: 'jsonp', | |
success: function (data) { | |
$('#version').html(data.productName + " " + data.baselineVersion); |
This file contains 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
docker pull mysql:5.7 | |
docker pull mysql:5.6 | |
docker pull mysql:5.5 | |
docker build -t mysql-5.1 github.com/ignatov/docker-mysql-5.1 | |
docker pull postgres:9.4 |
This file contains 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
LiftRules.statelessRewrite.append { | |
case RewriteRequest(ParsePath(path, "pdf", _, _), _, _) => // match /*.pdf | |
RewriteResponse("history" :: Nil) // Use webapp/history.html | |
} |
This file contains 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
#!/bin/sh | |
git filter-branch --env-filter ' | |
an="$GIT_AUTHOR_NAME" | |
am="$GIT_AUTHOR_EMAIL" | |
cn="$GIT_COMMITTER_NAME" | |
cm="$GIT_COMMITTER_EMAIL" | |
if [ "$GIT_COMMITTER_EMAIL" = "sergey@ignatov.spb.su" ] |
This file contains 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
Index: src/main/scala/scala/tools/colladoc/model/mapper/User.scala | |
=================================================================== | |
--- src/main/scala/scala/tools/colladoc/model/mapper/User.scala (revision 0b95b1d340a4c9660fd027a0e3c6ccf7143c2596) | |
+++ src/main/scala/scala/tools/colladoc/model/mapper/User.scala (revision ) | |
@@ -32,6 +32,7 @@ | |
import js.JE.ValById | |
import net.liftweb.util.Helpers._ | |
import xml.Text | |
+import lib.DependencyFactory | |
import lib.js.JqUI.ReloadTable |
This file contains 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
/** Set value to mbr.comment from mbr.tag() */ | |
private def setCurrent(mbr: MemberEntity, isSelf: Boolean) = { | |
def doo(mbr: MemberEntity, isSelf: Boolean)() = { | |
println(mbr.tag()) | |
val value = mbr.tag() match { | |
case c: Comment => c.comment.is | |
case s: String => s | |
case _ => "None" | |
} | |
println(value) |
OlderNewer