箱根湯本駅集合
移動 箱根湯本~彫刻の森
箱根湯本駅集合
移動 箱根湯本~彫刻の森
適当にモンキーパッチ当ててRails.logger.debug('hoge')
で死ぬようにする
def add(severity, message = nil, progname = nil, &block)
severity ||= UNKNOWN
if @logdev.nil? or severity < @level
return true
end
progname ||= @progname
/[0-90-9a-za-zA-ZA-Z..__ー―]+(@|@|あっと|アット|アット)[0-90-9a-za-zA-ZA-Z__ー―]+(\.|.)[0-90-9a-za-zA-ZA-Z..__ー―]+/
/[\d0-9]{2,4}(-|−|ー|―)[\d0-9]{2,4}(-|−|ー|―)[\d0-9]{4}/
require 'formula' | |
class TdAgent < Formula | |
url 'https://github.com/treasure-data/td-agent.git', :revision => '485aca031ccb6eec526caf9b596021e73f42b786' | |
head 'https://github.com/treasure-data/td-agent.git' | |
homepage 'https://github.com/treasure-data/td-agent' | |
version '1.1.17' | |
option 'fluentd-rev=<revision>', 'Using specify Fluentd revision' | |
option 'ruby-ver=<version>', 'Using specify Ruby version listed by ruby-build' |
$ scalac -cp "../jar/commons-io-2.4.jar:../jar/hoge.jar" Hoge.scala
$ scala -cp "../jar/commons-io-2.4.jar:../jar/hoge.jar" Hoge
<?php | |
/* | |
* | |
This JSONP API returns jsonp function call to JS script which called this JSONP API. | |
@response: | |
{*callback function name*}({[foo: "homhom"] , [bar: "anan"]}); | |
* |
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="" type="text/css"> | |
<script src=""></script> | |
<script src=""></script> | |
<script src=""></script> | |
<script src=""></script> |
#! /bin/sh | |
# | |
# This script excutes to archive log daily, and | |
# delete archived file whose timestamp is over day period you setted. | |
TODAY=`date +%Y-%m-%d` | |
#Directory you put logs. (ex '/home/app/program/log' |
<?php | |
class GroongaUtil{ | |
/* | |
* This Class is Utility for Groonga with HTTP. | |
* | |
* Groonga is an open-source fulltext search engine and column store. | |
* For detail of Groonga , see following web site. | |
* http://groonga.org/ | |
* |
<?php | |
include "sitesetting.php"; | |
include "setting.php"; | |
$db = mysqli_connect( $dbHost, $dbUser, $dbPass, $dbName ); | |
if( mysqli_connect_errno() ){ | |
die("データベースとの接続に失敗しました。:" . mysqli_connect_error()); | |
}else{ |