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
package com.security.enforcer | |
import grails.plugin.springsecurity.SpringSecurityService as SpringSecurityService | |
import org.springframework.beans.factory.annotation.Autowired as Autowired | |
import com.security.Sprocket as Sprocket | |
import grails.gorm.transactions.Transactional as Transactional | |
import com.virtualdogbert.ast.* | |
@com.virtualdogbert.ast.EnforcerTransactional | |
public class com.security.enforcer.EnforcerTestTService extends java.lang.Object { |
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
package com.security.enforcer | |
import com.security.Sprocket | |
import com.virtualdogbert.ast.* | |
import grails.gorm.transactions.Transactional | |
import grails.plugin.springsecurity.SpringSecurityService | |
@EnforcerTransactional | |
class EnforcerTestTService { | |
SpringSecurityService springSecurityService |
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
//Fizz Buzz in 62 characters vs http://rosettacode.org/wiki/FizzBuzz#Java | |
(1..100).each{println"${it%3?'':'Fizz'}${it%5?'':'Buzz'}"?:it} |
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
/* | |
* A link to the SE GEEK video tutorial that references this code: | |
* http://www.youtube.com/watch?v=U07O3IsRvDI&feature=share&list=SPzerMl1XZ0X1KwRPzJwXMCUjtuzX2KkGr | |
* | |
* This is an expressive example of what you can do with groovy to get similar functionality to a post I saw in Java, which | |
* builds a deck and deals it out: | |
* http://www.nobigo.com/design-a-deck-of-playing-cards-deck-shuffling/#.UiuCbFGkiP- | |
* | |
* Now I know this design is not really reusable, but with some minor changes you can get it there, and still have few lines of | |
* code than the java example |
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
#!/usr/bin/env python | |
# | |
# git-p4.py -- A tool for bidirectional operation between a Perforce depot and git. | |
# | |
# Author: Simon Hausmann <simon@lst.de> | |
# Copyright: 2007 Simon Hausmann <simon@lst.de> | |
# 2007 Trolltech ASA | |
# License: MIT <http://www.opensource.org/licenses/mit-license.php> | |
# |
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
#!/usr/bin/env python | |
# | |
# git-p4.py -- A tool for bidirectional operation between a Perforce depot and git. | |
# | |
# Author: Simon Hausmann <simon@lst.de> | |
# Copyright: 2007 Simon Hausmann <simon@lst.de> | |
# 2007 Trolltech ASA | |
# License: MIT <http://www.opensource.org/licenses/mit-license.php> | |
# |