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
*.class | |
*~ | |
.project |
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
*.class | |
*~ | |
.project |
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
import groovy.swing.SwingBuilder | |
import java.awt.* | |
import javax.swing.* | |
import javax.swing.event.* | |
SwingBuilder swing = new SwingBuilder() | |
def panel = { |
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
VERSION=1.2.0 | |
EMACS=emacs | |
PREFIX=/usr/local | |
SYSCONFDIR=/etc | |
ELS=magit.el magit-svn.el magit-topgit.el magit-stgit.el magit-key-mode.el magit-bisect.el magit-wip.el rebase-mode.el magit-blame.el | |
ELS_CONTRIB=contrib/magit-simple-keys.el contrib/magit-classic-theme.el | |
ELCS=$(ELS:.el=.elc) | |
ELCS_CONTRIB=$(ELS_CONTRIB:.el=.elc) | |
DIST_FILES=$(ELS) Makefile magit.texi magit.info README.md magit.spec.in magit-pkg.el.in | |
DIST_FILES_CONTRIB=$(ELS_CONTRIB) contrib/magit |
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
import javax.swing.* | |
def prompt = { | |
JFrame jframe = new JFrame() | |
String answer = JOptionPane.showInputDialog(jframe, it) | |
jframe.dispose() | |
answer | |
} | |
def first = prompt("Enter a number") |
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
public enum Player { | |
SOUTH, WEST, NORTH, EAST; | |
public Player next() { | |
int index = (this.ordinal() + 1) % values().length; | |
return values()[index]; | |
} | |
} |
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
import java.security.ProtectionDomain; | |
ProtectionDomain protectionDomain = getClass().getProtectionDomain(); | |
File codeLoc = new File(protectionDomain.getCodeSource().getLocation().getFile()); |
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
<% import org.wyttenbach.dale.groovy.webapp.Example %> | |
<% | |
response.setHeader("Cache-Control","no-cache"); | |
response.setHeader("Pragma","no-cache"); | |
response.setDateHeader ("Expires", 0); | |
%> | |
<link rel="stylesheet" href="css/sample.css" type="text/css"> | |
Here is a bunch of text |
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
<% import org.codehaus.groovy.control.CompilerConfiguration %> | |
<% import org.wyttenbach.dale.groovy.spaceship.* %> | |
<% | |
response.setHeader("Cache-Control","no-cache"); | |
response.setHeader("Pragma","no-cache"); | |
response.setDateHeader ("Expires", 0); | |
%> | |
<link rel="stylesheet" href="css/sample.css" type="text/css"> | |
Here is a bunch of text |
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
/* | |
* Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* | |
* - Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* |
OlderNewer