Skip to content

Instantly share code, notes, and snippets.

@gakuzzzz
gakuzzzz / 1_.md
Last active August 2, 2023 01:59
Scala の省略ルール早覚え

Scala の省略ルール早覚え

このルールさえ押さえておけば、読んでいるコードが省略記法を使っていてもほぼ読めるようになります。

メソッド定義

def concatAsString(a: Int, b: Int): String = {
  val a_ = a.toString();
  val b_ = b.toString();
@unok
unok / cakeunit4phpstorm.php
Last active December 14, 2015 13:48
とりあえずローカルのテストが動くように修正(動作環境 IDEA EAP 128.18)
<?php
chdir(dirname(__FILE__));
// Clean argument values
$phpStormRunner = null;
$cleanedArgv = array();
foreach ($_SERVER['argv'] as $key => $value) {
if (strpos($value, 'ide-phpunit.php') === false) {
$cleanedArgv[] = $value;
@OdaShinsuke
OdaShinsuke / BingSearch.java
Created February 19, 2012 03:37
BingSearch_WebDriver_java
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;
@ytoshima
ytoshima / C2-IR-Node-Classes
Created November 16, 2011 08:50
C2 IR Node classes
Node
AbsNode
AbsDNode
AbsFNode
AbsINode
AddNode
AddDNode
AddFNode
AddINode
AddLNode
@hugs
hugs / selenium-examples.py
Created February 16, 2011 19:40
Example code for using the Selenium 2 Python bindings.
# To install the Python client library:
# pip install -U selenium
# Import the Selenium 2 namespace (aka "webdriver")
from selenium import webdriver
# iPhone
driver = webdriver.Remote(browser_name="iphone", command_executor='http://172.24.101.36:3001/hub')
# Android
@fumokmm
fumokmm / ant-with-groovy-copy-in-one-stretch.xml
Created June 5, 2010 10:33
連続でフォルダにコピーする。
<?xml version="1.0" ?>
<project name="ant-with-groovy" default="test">
<taskdef name="groovy"
classname="org.codehaus.groovy.ant.Groovy"
classpath="groovy-all-1.7.2.jar" /> <!-- groovy-all-*.jar を指定 -->
<target name="test">
<groovy><![CDATA[
// 例:古いディレクトリから新しいディレクトリにコピー
def dirMap = [
@arikui
arikui / gist:68842
Created February 23, 2009 07:12
Language Evaluate Protocol
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
var Ci = Components.interfaces;
var Cc = Components.classes;
var Language = {
evaluators: {
"jscript": "cscript //E:JScript //Nologo",
"vbs" : "cscript //E:VBScript //Nologo",
"ruby" : "ruby",