Skip to content

Instantly share code, notes, and snippets.

@ivv-private
ivv-private / jdee.gradle
Last active September 2, 2018 11:22
jdee.gradle
def prj = { project ->
"(jde-project-file-version" (["1.0"])
"(jde-set-variables" {
"'(jde-compile-option-directory" ([project.sourceSets.main.output.classesDir])
"'(jde-junit-working-directory" ([project.projectDir])
"'(jde-compile-option-source" {
"'(" (["default"])
}
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>quick-repl</groupId>
<artifactId>clojure</artifactId>
<version>1</version>
<packaging>pom</packaging>
@ivv-private
ivv-private / solr-run.xml
Last active December 12, 2015 04:19
Launching Solr Server
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>dev-tools</groupId>
<artifactId>solr-run</artifactId>
<version>1</version>
<name>Launching Solr Server</name>
<packaging>war</packaging>
@ivv-private
ivv-private / SearchDaoImpl.java
Last active December 11, 2015 07:08
My Code Samples
/*
Solr Results to Domain Object Transformation.
Allows to map results to different object classes using distinguisher
tags: Solr, Springframework, Common Collections
*/
@Component
public class SearchDaoImpl {
@Autowired
begin
refresh_mviews;
end;
@ivv-private
ivv-private / features.xslt
Created October 30, 2012 09:30
blog-maven-features
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:f="http://foo.bar/features">
<xsl:strip-space elements="*"/>
<xsl:output method="xml" indent="yes"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
@ivv-private
ivv-private / init-jdb-sourcepath.el
Created October 29, 2012 13:07
blog-jdb-sourcepath
(require 'jdb-sourcepath)
(add-hook
'jdb-mode-hook
(lambda ()
(set 'gud-jdb-sourcepath (jdb-sourcepath-from-rc))))
(run-at-time "1:00am" (* 60 60 24) 'jdb-setup)
@ivv-private
ivv-private / environments.org
Created October 29, 2012 12:50
blog-con-mgr

environments

service (sid)userpwd
prodowner appgod
devdbolove
uatdbasecret
@ivv-private
ivv-private / ac.el
Created October 29, 2012 10:55
blog-emacs-java
(require 'auto-complete-config)
(ac-config-default)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/site-lisp/auto-complete/ac-dict")
(add-to-list 'ac-modes 'jde-mode)
(setq ac-ignore-case 'smart)
(setq ac-use-menu-map t)
(define-key ac-menu-map "\C-n" 'ac-next)
(define-key ac-menu-map "\C-p" 'ac-previous)
@ivv-private
ivv-private / gist:3972909
Created October 29, 2012 10:46
blog-emacs-java-jde-help
(require 'jde-help)
;; w3 fail to load local file, so skip this feature
(defmethod jde-jdhelper-show-url ((this jde-jdhelper) url)
(let ((doc-url (jde-url-name url)))
(message "Displaying %s from %s"
(oref url :class)
(oref (oref url :docset) :description))
(jde-jdhelper-show-document this doc-url)))