This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
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') << { |
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 |
<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> |
:x (comment | |
@echo off | |
java -cp clojure.jar clojure.main "%~f0" %* | |
goto :eof | |
) | |
(println "Hi!" *command-line-args*) |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
#!/bin/sh | |
exec scala "$0" "$@" | |
!# | |
import java.io._ | |
val docs = new File(".").listFiles | |
.filter(_.getName.endsWith(".textile")) // process only textile files | |
.map(new DocumentationFile(_)) |
/** | |
* 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> |
<?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> |