Skip to content

Instantly share code, notes, and snippets.

@halyph
halyph / build.gradle
Last active August 29, 2015 14:14 — forked from glaforge/build.gradle
apply plugin:'groovy'
apply plugin:'idea'
repositories { mavenCentral() }
dependencies {
groovy 'org.codehaus.groovy:groovy-all:1.8.4'
}
task makeDirs(description:'make all dirs for project setup') << {
@halyph
halyph / import.rb
Last active August 29, 2015 14:15 — forked from baldowl/import.rb
Import Blogger into Octopress
require 'rubygems'
require 'nokogiri'
require 'fileutils'
require 'date'
require 'uri'
# usage: ruby import.rb my-blog.xml
# my-blog.xml is a file from Settings -> Basic -> Export in blogger.
data = File.read ARGV[0]
GRAILS GROOVY SOURCE
3.0.1
3.0.0 2.4 https://grails.github.io/grails-doc/3.0.x/guide/introduction.html
2.5.0 2.4.3 http://grails.1312388.n4.nabble.com/ANN-Grails-2-4-5-and-Grails-2-5-0-released-td4658938.html
2.4.5 2.3.11 https://objectpartners.com/2015/05/14/list-of-groovy-versions-for-each-version-of-grails/#comment-7971
2.4.4
2.4.3
2.4.2
@halyph
halyph / userDefineLang_Groovy.xml
Last active August 29, 2015 14:27 — forked from Thermionix/userDefineLang_Groovy.xml
Groovy user defined language for notepad++
<NotepadPlus>
<UserLang name="Groovy" ext="groovy" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">03/* 04*/ 00// 01 02</Keywords>
<Keywords name="Keywords1">abstract break case catch continue default do else extends final finally for if implements instanceof native new private protected public return static switch synchronized throw throws transient try volatile while strictfp package import false null super this true</Keywords>
<Keywords name="Keywords2">as assert def mixin property test using in it</Keywords>
@halyph
halyph / clj.bat
Created June 19, 2011 13:19
The embedding a Clojure script into a batch file
:x (comment
@echo off
java -cp clojure.jar clojure.main "%~f0" %*
goto :eof
)
(println "Hi!" *command-line-args*)
@halyph
halyph / about.md
Created August 12, 2011 09:26 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@halyph
halyph / status.scala
Created January 4, 2012 07:10 — forked from opensas/status.scala
tiny little scala script to check for play documentation translated files, see http://www.dzone.com/links/first_steps_with_scala_say_goodbye_to_bash_scripts.html
#!/bin/sh
exec scala "$0" "$@"
!#
import java.io._
val docs = new File(".").listFiles
.filter(_.getName.endsWith(".textile")) // process only textile files
.map(new DocumentationFile(_))
@halyph
halyph / join.java
Created January 21, 2012 14:52
Join String arguments into one String separated by comma (",")
/**
* Join String arguments into one String separated by comma (",")
* @param args input Strings
* @return joined String
*/
public static String join(String... args) {
if(args.length <1) throw new IllegalArgumentException();
String joined = Arrays.toString(args);
String result = joined.substring(1, joined.length()-1);
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" 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>org.halyph</groupid>
<artifactid>proptest</artifactid>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>proptest</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
@halyph
halyph / pom.xml
Created June 15, 2012 12:59
Book "Spring Persistence with Hibernate" updated pom.xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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>com.prospinghibernate.gallery</groupId>
<artifactId>gallery</artifactId>
<packaging>war</packaging>
<version>1.0.0-SNAPSHOT</version>