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 | |
echo "hello"; | |
class Jake{ | |
private $name; | |
public function set($name){ | |
$this->name = $name; | |
} | |
} | |
$man = new Jake('Jakesoft'); |
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 | |
/** | |
* Description replace from your description | |
* Created by Jetbrains PhpStorm. | |
* User: Jake <singviy@gmail.com> | |
* Created: 2016/6/7 9:39 | |
*/ | |
class Config |
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 | |
/** | |
*去除所有文件BOM | |
* usage:命令行进入到项目根目录,执行 php clear_bom.php | |
*author Caihong_tang | |
*@created 2016-6-13 10:05:34 | |
*/ | |
if (isset($_GET['dir'])){ | |
$basedir=$_GET['dir']; | |
} |
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 | |
/** | |
* Created by PhpStorm. | |
* User: Administrator | |
* Date: 2017-03-31 | |
* Time: 10:44 | |
*/ | |
namespace AppBundle\Services; |
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
<VirtualHost *:443 *:80> | |
DocumentRoot "/path/to/webRoot" | |
ServerName yourServerName | |
<IfModule ssl_module> | |
SSLEngine on | |
SSLCertificateFile "/path/to/crtFileName.crt" | |
SSLCertificateKeyFile "/path/to/keyFileName.key" | |
</IfModule> |
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
server { | |
listen 80; | |
server_name domain.com www.domain.com; | |
return 301 https://www.domain.com$request_uri; | |
} | |
server { | |
listen 443; | |
server_name www.domain.com domain.com; | |
root /alidata/www/geekerism; |
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 | |
function getReferer($link) | |
{ | |
$refMap = [ | |
'baidu' => '百度', | |
'sougou' => '搜狗', | |
'360' => '360', | |
'google' => '谷歌' | |
]; |
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 | |
$len = count($arr); | |
for ($i = 0; $i < $len; $i++) { | |
for ($j = 0; $j < $i; $j++) { | |
if ($arr[$i] < $arr[$j]) { | |
$temp = $arr[$i]; | |
$arr[$i] = $arr[$j]; | |
$arr[$j] = $temp; |
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
/** | |
* @license almond 0.3.2 Copyright jQuery Foundation and other contributors. | |
* Released under MIT license, http://github.com/requirejs/almond/LICENSE | |
*/ | |
//Going sloppy to avoid 'use strict' string cost, but strict practices should | |
//be followed. | |
/*global setTimeout: false */ | |
var requirejs, require, define; | |
(function (undef) { |
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
[elasticsearch-6.x] | |
name=Elasticsearch repository for 6.x packages | |
baseurl=https://artifacts.elastic.co/packages/6.x/yum | |
gpgcheck=1 | |
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch | |
enabled=1 | |
autorefresh=1 | |
type=rpm-md |
OlderNewer