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
| using System; | |
| using System.Text.RegularExpressions; | |
| using OpenQA.Selenium; | |
| using OpenQA.Selenium.Support.UI; | |
| namespace WebDriverTest { | |
| public class BingSearch { | |
| public static BingSearch Create(IWebDriver driver) { | |
| var instance = new BingSearch(driver); | |
| driver.Url = "http://www.bing.com"; |
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 webdrivertest; | |
| import static org.openqa.selenium.support.ui.ExpectedConditions.titleIs; | |
| import org.openqa.selenium.WebDriver; | |
| import org.openqa.selenium.WebElement; | |
| import org.openqa.selenium.remote.RemoteWebDriver; | |
| import org.openqa.selenium.support.ui.Wait; | |
| import org.openqa.selenium.support.ui.WebDriverWait; |
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
| using NUnit.Framework; | |
| using OpenQA.Selenium.IE; | |
| using PageObjects; | |
| namespace WebDriverTest { | |
| [TestFixture] | |
| public class PageObjectTest { | |
| [Test] | |
| public void 検索() { | |
| var driver = new InternetExplorerDriver(); |
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
| let ret1 = List.zip [0..4] [10;20;30;40;50];; | |
| let mul (i, x) = x * i;; | |
| let ret2 = List.map mul ret1;; | |
| let calc xs = List.fold (fun acc value -> acc + value) 0 (List.map mul (List.zip [0..4] xs));; | |
| calc [10;20;30;40;50];; |
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
| Write-Host "Backup!" | |
| Write-Host "0% * * * * * * * * * * 100%" | |
| while ($true) { | |
| Get-ChildItem | % { | |
| $path = $_.FullName | |
| Write-Host "Backup File:$path starting ... " | |
| for ($count = 1; $count -le 20; ++$count) { | |
| $ran = Get-Random | |
| sleep -m ($count * ($ran % 30)) |
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
| using System; | |
| using System.Linq; | |
| namespace TDDPre { | |
| public class 自動販売機 { | |
| private static int[] 正規のお金 = new int[] { 10, 50, 100, 500, 1000 }; | |
| public int 投入金額 { get; private set; } | |
| /// <summary> | |
| /// Command | |
| /// </summary> |
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
| <UsingTask TaskName="ReplaceStyleCopResult" TaskFactory="CodeTaskFactory" AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.v4.0.dll"> | |
| <ParameterGroup> | |
| <PATH ParameterType="System.String" Required="true" /> | |
| <WORKSPACE ParameterType="System.String" Required="true" /> | |
| </ParameterGroup> | |
| <Task> | |
| <Code Type="Fragment" Language="cs"><![CDATA[ | |
| var content = File.ReadAllText(PATH); | |
| File.WriteAllText(PATH, content.Replace(WORKSPACE, "../")); | |
| ]]></Code> |
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 contracts | |
| import java.lang.annotation.ElementType | |
| import java.lang.annotation.Target | |
| import org.eclipse.xtend.lib.macro.AbstractMethodProcessor | |
| import org.eclipse.xtend.lib.macro.Active | |
| import org.eclipse.xtend.lib.macro.TransformationContext | |
| import org.eclipse.xtend.lib.macro.declaration.MutableMethodDeclaration | |
| import org.eclipse.xtend.lib.macro.declaration.Visibility |
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 sample; | |
| import java.io.Serializable; | |
| import java.util.Arrays; | |
| import java.util.List; | |
| import javax.faces.view.ViewScoped; | |
| import javax.inject.Named; | |
| @SuppressWarnings("serial") |
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.wordnik.swagger.jaxrs; | |
| import java.lang.annotation.Annotation; | |
| import java.lang.reflect.Field; | |
| import java.lang.reflect.Type; | |
| import java.util.ArrayList; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import java.util.Set; |
OlderNewer