ちょまどっぽいど (@_chomado_bot)
ちょまどさんのツイートを学習して喋ります。
一部変な機能があります。
- ちょまどさん作のbotは @chomado_bot です。
- https://github.com/chomado/chomado_bot のレポジトリとは全く関係ありません。(_chomado_bot のソースはこっちです)
ちょまどさんのツイートを学習して喋ります。
一部変な機能があります。
| (function($){ | |
| "use strict"; | |
| $.fn.revEach = function(callback, args) { | |
| var $this = $(this.get().reverse()); | |
| $.each($this, callback, args); | |
| }; | |
| })(jQuery); |
| # 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 |
| install | |
| cdrom | |
| text | |
| unsupported_hardware | |
| lang en_US --addsupport=ja_JP | |
| keyboard jp106 | |
| skipx | |
| selinux --disabled | |
| firewall --enabled --ssh | |
| firstboot --disabled |
| <?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() |
| 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; }; }; |
| --- Zend/Validate/Hostname.php.b 2013-06-12 16:36:25.000000000 +0900 | |
| +++ Zend/Validate/Hostname.php 2013-06-12 16:48:06.000000000 +0900 | |
| @@ -705,15 +705,13 @@ | |
| return false; | |
| } | |
| + $decoded = array(); | |
| $separator = strrpos($encoded, '-'); | |
| if ($separator > 0) { | |
| for ($x = 0; $x < $separator; ++$x) { |
| <?php | |
| class PunpunmaruLogRoute extends CLogRoute { | |
| public $output = STDERR; | |
| public $words = array( | |
| 'profile' => 'おこ', | |
| 'trace' => 'まじおこ', | |
| 'info' => '激おこぷんぷん丸', | |
| 'warning' => 'ムカ着火ファイヤー', | |
| 'error' => '激おこスティックファイナリアリティぷんぷんドリーム', | |
| ); |
| [root@mai ~]# yum remove python | |
| Loaded plugins: allowdowngrade, downloadonly, fastestmirror, priorities | |
| Setting up Remove Process | |
| Resolving Dependencies | |
| --> Running transaction check | |
| ---> Package python.x86_64 0:2.4.3-56.el5 set to be erased | |
| --> Processing Dependency: python(abi) = 2.4 for package: python-libs | |
| --> Processing Dependency: python(abi) = 2.4 for package: python-elementtree | |
| --> Processing Dependency: python(abi) = 2.4 for package: libxml2-python | |
| --> Processing Dependency: python(abi) = 2.4 for package: libuser |
| <?php | |
| class Stations extends CActiveRecord { | |
| public $distance; | |
| // ^^^^^^^^^^^^^^^^^ | |
| // (omit) | |
| public function byLocation($lat, $long, $limit = 2000) { | |
| $self = $this->getTableAlias(false, false); | |
| $func = "distance({$self}.location, POINT(:latitude, :longitude))"; | |
| $this->getDbCriteria()->mergeWith(array( |