Skip to content

Commit

Permalink
清理忽略文件
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexchent committed Jan 14, 2020
1 parent c7a532b commit f3c85fc
Show file tree
Hide file tree
Showing 466 changed files with 61,310 additions and 85 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/.idea
/.idea/vendor
Expand Down
5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/dictionaries/chentao.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion .idea/interview.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,405 changes: 1,405 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions cli/Consumer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php/** * Created by PhpStorm. * User: chentao * Date: 2019/12/17 * Time: 4:52 PM *///echo __DIR__;die;include '/Users/chentao/Documents/work/interview/Queue/Rabbit.php';consumer();function consumer(){ $config = array("host" => "127.0.0.1", "port" => "5672", "login" => "admin", "password" => "admin"); $rabbit = new \Queue\Rabbit($config); $rabbit->consume('queueName_test', 'callbackDoWork');}function callbackDoWork($envelope, $queue){ $data = $envelope->getBody(); // 消息内容 print_r($data); $envelopeId = $envelope->getDeliveryTag(); print_r($envelopeId);}
Expand Down
1 change: 1 addition & 0 deletions cli/Index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php/** * Created by PhpStorm. * User: chentao * Date: 2019/12/17 * Time: 3:20 PM */namespace Controller\Home;use Queue\Rabbit;class Index{ public function test(){ //向队列queueName_test里放入消息 $config = array("host" => "127.0.0.1", "port" => "5672", "login" => "admin", "password" => "admin"); $rabbit = new Rabbit($config); $rabbit->publish('queueName_test', time()); } public function consumer(){ $config = array("host" => "127.0.0.1", "port" => "5672", "login" => "admin", "password" => "admin"); $rabbit = new Rabbit($config); $rabbit->consume('queueName_test', 'callbackDoWork'); } public function callbackDoWork($envelope, $queue) { $data = $envelope->getBody(); // 消息内容 print_r($data); $envelopeId = $envelope->getDeliveryTag(); print_r($envelopeId); }}
Expand Down
1 change: 1 addition & 0 deletions cli/publish.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php/** * Created by PhpStorm. * User: chentao * Date: 2019/12/17 * Time: 4:51 PM *///require '../Queue/Rabbit.php';$config = array("host" => "127.0.0.1", "port" => "5672", "login" => "admin", "password" => "admin");//$rabbit = new \Queue\Rabbit($config);//$rabbit->publish('queueName_test', time());$connect = new AMQPConnection($config);$connect->connect();
Expand Down
17 changes: 0 additions & 17 deletions suanfa/Tool.php

This file was deleted.

24 changes: 22 additions & 2 deletions suanfa/binarySearch.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
//二分查找,返回索引
function binarySearch( $arr,$str){
function binarySearch($arr, $str){
$low = 0;
$high = count($arr) - 1;
while($low<=$high){
Expand All @@ -17,4 +17,24 @@ function binarySearch( $arr,$str){

$arr = array(1, 3, 5, 7, 9, 11);
$inx = binarySearch($arr, 11);
echo $inx."\n";
echo $inx."\n";



//递归方式实现
function find($need, $arr) {
$count = count($arr);
if ($count == 1) {
if ($arr[0] == $need) return true;
return false;
}

$tmp = intval($count/2) - 1;
if ($arr[$tmp] == $need) return true;

if ($arr[$tmp] > $need) {
return find($need, array_slice($arr, 0, $tmp+1));
} else {
return find($need, array_slice($arr, $tmp + 1));
}
}
50 changes: 0 additions & 50 deletions suanfa/in_array.php

This file was deleted.

14 changes: 0 additions & 14 deletions suanfa/str.php

This file was deleted.

1 change: 1 addition & 0 deletions test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1234567890-=abcd
Expand Down
1 change: 1 addition & 0 deletions tindex.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?phpdefine('ROOT_DIR', dirname(__DIR__));echo __DIR__.PHP_EOL;echo ROOT_DIR.PHP_EOL;require "Framework/Loader.php";\Framework\Loader::addAutoloadDIR(ROOT_DIR);\Framework\Loader::registerAutoLoad();//\Helper\Tools::getServerIp();
Expand Down
7 changes: 7 additions & 0 deletions vendor/autoload.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit63933d1c73607e8a4775cb2ffe091d09::getLoader();
Loading

0 comments on commit f3c85fc

Please sign in to comment.