Skip to content

Instantly share code, notes, and snippets.

View pzzrudlf's full-sized avatar
💭
I may be slow to respond.

pzzrudlf pzzrudlf

💭
I may be slow to respond.
View GitHub Profile
sudo su
server {
listen 2030;
root c:\Projects\funshop\frontend\web;
location / {
try_files $uri $uri/ /index.php?$query_string;
index index.html index.htm index.php;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
<?php
$num = 1000;
$times = 3;
$algorithms = array('insert', 'shell', 'bubble', 'quick', 'select', 'heap', 'merge', 'radix');
$arr = array();
while (count($arr) < $num) {
$key = rand(1, $num * 10);
$arr[$key] = 1;
}
$arr = array_keys($arr);
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# Virtual Hosts
#
# Required modules: mod_log_config
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
xAxis: {
tickmarkPlacement : 'on',
},
//convert json to array
function json2array(json){
var temp = [];
var keys = Object.keys(json);
keys.forEach(function(key){
temp.push([key,json[key]]);
});
return temp;
}
function getOriginalArray(data,id,pid){
console.log(data);
console.log(id);
var originalArray = [];
var num = 0;
for(var i in data){
var second = data[i];
for(var j in second){
var modules_id = [];
$("#menu-leaf_node option:selected").each(function(){
// alert(this.value);
modules_id.push(this.value);
});