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 org.jenkinsci.plugins.hoge; | |
import java.io.IOException; | |
import java.util.Date; | |
import javax.servlet.ServletException; | |
import hudson.Extension; | |
import hudson.Launcher; | |
import hudson.model.AbstractBuild; | |
import hudson.model.AbstractProject; |
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
@Grab('org.eclipse.jetty:jetty-server:8.1.14.v20131031') | |
import org.eclipse.jetty.server.Server | |
import org.eclipse.jetty.server.handler.ContextHandler | |
import org.eclipse.jetty.server.handler.ResourceHandler | |
import org.eclipse.jetty.util.resource.FileResource | |
def handler = new ResourceHandler() | |
handler.directoriesListed = true | |
handler.baseResource = new FileResource(new File(args ? args[0] : System.getProperty('user.dir')).canonicalFile.toURL()) |
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
<FindbugsPlugin> | |
<Detector class="sample.PageDetector" speed="fast" /> | |
<BugPattern abbrev="PAGE" type="INVALID_PARENT_PAGE" category="CORRECTNESS" /> | |
</FindbugsPlugin> |
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 class 分岐 { | |
private 条件 | |
private 実行した | |
private 実行 | |
public 分岐(条件, クロージャ) { | |
this.条件 = 条件 |
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 class Kuku { | |
public static void main(String[] args) { | |
for (int i=0,j=1; i<81; j=++i % 9 + 1) System.out.printf("%d%c", j * (i / 9 + 1), 32 - j / 9 * 22); | |
} | |
} |
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
#!/bin/bash | |
cd `dirname $0` | |
CMD="cvs his -xMAR" | |
if [ "$1" = "" ]; then | |
echo "Usage: $0 [user] [date] [time]" | |
echo " user : user name or all." | |
echo " date : yyyy/MM/dd or yyyy/MM/dd." |
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
#!/bin/bash | |
cd `dirname $0` | |
if [ -f $1.txt ]; then | |
perl -pe 's/ +/,/g' < $1.txt \ | |
| cut -f 6,7,8 -d , \ | |
| perl -pe 's/([^,]*),([^,]*),(.*)/-r\1 \3\/\2/g' \ | |
| xargs -n 2 cvs rlog > $1.log | |
else |
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 class HelloWorld { | |
public static void main(String[] args) { | |
System.out.println("Hello World!"); | |
} | |
} |
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
function() { | |
alert("Hello World!"); | |
} |
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 sample; | |
import java.util.regex.Pattern; | |
import org.apache.bcel.classfile.JavaClass; | |
import edu.umd.cs.findbugs.BugInstance; | |
import edu.umd.cs.findbugs.BugReporter; | |
import edu.umd.cs.findbugs.BytecodeScanningDetector; | |
OlderNewer