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
<?php // 代入演算子 | |
$a = 1; | |
print $a; // 1 | |
// 参照による代入 | |
$a = 1; | |
$b = &$a; | |
print $b; // 1 | |
$a = 2; | |
print $b; // 2($aが変わったので$bも変化する) |
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
# @param [String] db_name | |
# @param [String] q | |
# @param [String] result_url | |
# @param [Fixnum] priority | |
# @param [Fixnum] retry_limit | |
# @param [Hash] opts | |
# @return [Job] | |
def query(db_name, q, result_url=nil, priority=nil, retry_limit=nil, opts={}) | |
# for compatibility, assume type is hive unless specifically specified | |
type = opts[:type] || opts['type'] || :hive |
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 | |
# TODO: http://wiki.debian.org/LSBInitScripts | |
DESC="Selenium server" | |
RUN_AS=root | |
JAVA_BIN=/usr/bin/java | |
SELENIUM_DIR=/etc/selenium | |
PID_FILE="$SELENIUM_DIR/selenium.pid" |