This file contains hidden or 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.scriptom.* | |
Scriptom.inApartment { | |
def dir = new File("c:/temp") | |
def pdfApp = new ActiveXObject('Bullzip.PDFPrinterSettings') | |
def wsh = new ActiveXObject('WScript.Shell') | |
def wshnw = wsh.createObject("WScript.Network") | |
wshnw.setDefaultPrinter(pdfApp.getPrinterName()) | |
def adobeReader = wsh.RegRead('HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\App Paths\\AcroRd32.exe\\') |
This file contains hidden or 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
Dim i, tmp | |
Set objFSO = WScript.CreateObject("Scripting.FileSystemObject") | |
Set objArgs = WScript.Arguments | |
For i = 0 to objArgs.Count - 1 | |
If objFSO.FileExists(objArgs(i)) Then | |
Set file = objFSO.getFile(objArgs(i)) | |
filter(file) | |
End If | |
If objFSO.FolderExists(objArgs(i)) Then |
This file contains hidden or 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
Dim tmpExcel, tmpWord, tmpPPT, I, pdfFile, waitTime | |
waitTime = 10000 | |
Set objFSO = WScript.CreateObject("Scripting.FileSystemObject") | |
Set objArgs = WScript.Arguments | |
For I = 0 to objArgs.Count - 1 | |
If objFSO.FileExists(objArgs(I)) Then | |
Set file = objFSO.getFile(objArgs(I)) | |
filter(file) |
This file contains hidden or 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
listFilter = [] | |
jarfile = "" | |
fileList = [] | |
cli = new CliBuilder(usage:"jinspect [-hHvxXoawmISMWjJrgGcCpPlLZZZ] jarfile [filename ...]") | |
cli.with { | |
h(longOpt:'help', 'show help') | |
v(longOpt:'verbose', 'be more verbose') | |
X(longOpt:'save', 'save specified files (including path) to the current directory instead of printing them') | |
l(longOpt:'war', 'list war contents; specify again to include more information') |
This file contains hidden or 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
<dependency> | |
<groupId>com.sun</groupId> | |
<artifactId>tools</artifactId> | |
<version>1.5</version> | |
<scope>system</scope> | |
<!--<systemPath>${java.home}/../lib/tools.jar</systemPath>--> | |
<systemPath>${java.home}/../Classes/classes.jar</systemPath> | |
</dependency> | |
This file contains hidden or 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.googlecode.intellimars.quicklook; | |
import com.intellij.codeInsight.hint.ImplementationViewComponent; | |
import com.intellij.openapi.actionSystem.AnAction; | |
import com.intellij.openapi.actionSystem.AnActionEvent; | |
import com.intellij.openapi.actionSystem.LangDataKeys; | |
import com.intellij.openapi.actionSystem.PlatformDataKeys; | |
import com.intellij.openapi.actionSystem.impl.ActionMenuItem; | |
import com.intellij.openapi.diagnostic.Logger; | |
import com.intellij.openapi.project.Project; |
This file contains hidden or 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
" vim:set ts=8 sts=2 sw=2 tw=0: (この行に関しては:help modelineを参照) | |
" | |
" An example for a Japanese version gvimrc file. | |
" 日本語版のデフォルトGUI設定ファイル(gvimrc) | |
" | |
" Maintainer: Muraoka Taro <[email protected]> | |
" Last Change: 03-Oct-2001. | |
" | |
" 解説: | |
" このファイルにはVimの起動時に必ず設定される、GUI関連の設定が書かれていま |
This file contains hidden or 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 example; | |
public class HelloWorld { | |
public String greet() { return greet("English"); } | |
public String greet(String lang) { | |
String msg = "???"; | |
if (lang.equals("English")) msg = "Hello"; | |
if (lang.equals("French")) msg = "Bonjour"; | |
if (lang.equals("German")) msg = "Hallo"; | |
return msg; |
This file contains hidden or 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
<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>example</groupId> | |
<artifactId>scala-specs</artifactId> | |
<version>1.0</version> | |
<inceptionYear>2008</inceptionYear> | |
<properties> | |
<scala.version>2.7.3</scala.version> | |
</properties> |
This file contains hidden or 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 example | |
import org.specs.runner.{HtmlRunner, JUnit4} | |
import org.specs.specification.HtmlSpecification | |
import org.specs.matcher._ | |
class HelloWorldTest extends JUnit4(HelloWorldSpecification) | |
object HelloWorldSpecification extends HtmlSpecification("あいさつアプリケーションの仕様書") { | |
val helloWorld = new HelloWorld() |