ちょまどっぽいど (@_chomado_bot)
ちょまどさんのツイートを学習して喋ります。
一部変な機能があります。
- ちょまどさん作のbotは @chomado_bot です。
- https://github.com/chomado/chomado_bot のレポジトリとは全く関係ありません。(_chomado_bot のソースはこっちです)
zone "2ch.net" { type forward; forward only; forwarders { 8.8.8.8; 8.8.4.4; }; }; | |
zone "bbspink.com" { type forward; forward only; forwarders { 8.8.8.8; 8.8.4.4; }; }; | |
zone "maido3.com" { type forward; forward only; forwarders { 8.8.8.8; 8.8.4.4; }; }; | |
zone "nttec.com" { type forward; forward only; forwarders { 8.8.8.8; 8.8.4.4; }; }; | |
zone "pinktower.com" { type forward; forward only; forwarders { 8.8.8.8; 8.8.4.4; }; }; | |
zone "tora3.net" { type forward; forward only; forwarders { 8.8.8.8; 8.8.4.4; }; }; |
<?php | |
$host = 'localhost'; | |
$port = 3306; | |
$user = 'DBUSER'; | |
$pass = 'DBPASS'; | |
$database = 'DBNAME'; | |
// Autoloader http://www.revulo.com/blog/20090524.html | |
require_once('Zend/Loader/Autoloader.php'); | |
$autoloader = Zend_Loader_Autoloader::getInstance() |
install | |
cdrom | |
text | |
unsupported_hardware | |
lang en_US --addsupport=ja_JP | |
keyboard jp106 | |
skipx | |
selinux --disabled | |
firewall --enabled --ssh | |
firstboot --disabled |
# yum install php | |
Loaded plugins: langpacks | |
Resolving Dependencies | |
--> Running transaction check | |
---> Package php.x86_64 0:5.4.16-21.el7 will be installed | |
--> Processing Dependency: php-cli(x86-64) = 5.4.16-21.el7 for package: php-5.4.16-21.el7.x86_64 | |
--> Processing Dependency: httpd-mmn = 20120211-x86-64 for package: php-5.4.16-21.el7.x86_64 | |
--> Processing Dependency: php-common(x86-64) = 5.4.16-21.el7 for package: php-5.4.16-21.el7.x86_64 | |
--> Running transaction check | |
---> Package php.x86_64 0:5.4.16-21.el7 will be installed |
(function($){ | |
"use strict"; | |
$.fn.revEach = function(callback, args) { | |
var $this = $(this.get().reverse()); | |
$.each($this, callback, args); | |
}; | |
})(jQuery); |
ちょまどさんのツイートを学習して喋ります。
一部変な機能があります。
<?php | |
class MillerRabinTest { | |
public static function isPrime($number, $round = 10) { | |
$number = intval($number); | |
$round = intval($round); | |
if($number === 2) { | |
return true; | |
} | |
if($number === 1 || $number % 2 === 0) { | |
return false; |
3 13, 2015 1:51:29 午前 com.ponkotuy.util.Log$class error | |
ERROR: -1 | |
scala.collection.LinearSeqOptimized$class.apply(LinearSeqOptimized.scala:65) | |
scala.collection.immutable.List.apply(List.scala:84) | |
com.ponkotuy.parser.DependentPost$$anonfun$mapRoute$1.apply(DependentPost.scala:127) | |
com.ponkotuy.parser.DependentPost$$anonfun$mapRoute$1.apply(DependentPost.scala:126) | |
scala.Option.foreach(Option.scala:257) | |
com.ponkotuy.parser.DependentPost.mapRoute(DependentPost.scala:126) | |
com.ponkotuy.parser.ResponseController$$anonfun$query$18.apply(ResponseController.scala:73) | |
com.ponkotuy.parser.ResponseController$$anonfun$query$18.apply(ResponseController.scala:73) |
# タイムゾーンはデフォルト (America/New_York のはず) | |
[fetus@harusame bin]$ /opt/hhvm/hhvm-3.6.1/bin/hhvm hoge.php | |
2015-04-27 05:16:51-0400 | |
# Asia/Tokyo を指定してみる | |
[fetus@harusame bin]$ /opt/hhvm/hhvm-3.6.1/bin/hhvm -d date.timezone=Asia/Tokyo hoge.php | |
2015-04-27 18:16:59+0900 | |
# Etc/UTC を指定してみる | |
[fetus@harusame bin]$ /opt/hhvm/hhvm-3.6.1/bin/hhvm -d date.timezone=Etc/UTC hoge.php |
<?xml version="1.0" encoding="UTF-8"?> | |
<dictionary> | |
<match> | |
<type>reply</type> | |
</match> | |
<set> | |
<match> | |
<keyword>ホモ</keyword> | |
</match> | |
<text>{shindanmaker:a315883}</text> |