Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
brew update | |
brew versions FORMULA | |
cd `brew --prefix` | |
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
brew install FORMULA | |
brew switch FORMULA VERSION | |
git checkout -- Library/Formula/FORMULA.rb # reset formula | |
## Example: Using Subversion 1.6.17 | |
# |
package com.alkalinezoo.transform | |
import java.lang.annotation.Target | |
import java.lang.annotation.ElementType | |
import java.lang.annotation.Retention | |
import java.lang.annotation.RetentionPolicy | |
import org.codehaus.groovy.transform.GroovyASTTransformationClass | |
/** | |
* Simple annotation that when used on a class adds two new fields of type {@code java.util.Date} |
@Grab("org.grails:gorm-mongodb-spring-boot:1.0.0.RC1") | |
import grails.persistence.* | |
import grails.mongodb.geo.* | |
import org.bson.types.ObjectId | |
import com.mongodb.BasicDBObject | |
import org.springframework.http.* | |
import org.springframework.beans.factory.annotation.Autowired | |
import static org.springframework.web.bind.annotation.RequestMethod.* | |
@RestController |
// IN the build.gradle file | |
test { | |
systemProperties 'logback.configurationFile' : new File(projectDir,'src/test/resources/logback-test.xml').absolutePath | |
} |
This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.
The Atom documentation is excellent. It's highly worth reading the flight manual.