摘要:
class Solution(object): def climbStairs(self, n): """ :type n: int :rtype: int """ if n <= 2: return ... 阅读全文
摘要:
# Definition for singly-linked list.# class ListNode(object):# def __init__(self, x):# self.val = x# self.next = Noneclass Solutio... 阅读全文
摘要:
函数名描述示例结果pi圆周率math.pi3.1415926535898abs取绝对值math.abs(-2012)2012ceil向上取整math.ceil(9.1)10floor向下取整math.floor(9.9)9max取参数最大值math.max(2,4,6,8)8min取参数最小值mat... 阅读全文
摘要:
cat count.log | awk '{print $7}' | awk '{if ($1 == "-") empty++ }END {print NR, empty, empty/NR}' 阅读全文
摘要:
#php-fpm.conf#open catch_workers_output = yes#php.inilog_errors = Onerror_log=/data/logs/php-fpm/error.logerror_reporting= E_ERROR | E_PARSE#check php... 阅读全文
摘要:
#install luajit#http://luajit.org/download.htmltar xzvf LuaJIT-2.0.4.tar.gzcd LuaJIT-2.0.4make install PREFIX=/home/allen.mh/local/luajitsudo echo "/h... 阅读全文
摘要:
./configure --prefix=/home/allen.mh/local/nginx --with-http_ssl_module --with-http_sub_module --with-http_gzip_static_module --with-http_stub_status_m... 阅读全文
摘要:
LD_DEBUG=libs ./memcached -v 阅读全文
摘要:
$echo stats | nc 127.0.0.1 11211STAT pid 25030STAT uptime 6859STAT time 1444384843STAT version 1.2.6STAT pointer_size 64STAT rusage_user 7.054927STAT ... 阅读全文
摘要:
#! /usr/bin/env python ###### Linked List python implementation###### @reference Data Structures and Algorithm Analysis in C:Second Edition : Mark All... 阅读全文