码迷,mamicode.com
首页 >  
搜索关键字:yesterday    ( 271个结果
T - stl 的mapⅡ
Description Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history bo
分类:其他好文   时间:2016-02-25 19:55:24    阅读次数:188
Cherish life and embrace the life
Cherish life and embrace the life (珍惜生命,拥抱生活) Yesterday, I have attended a special funeral, after which a different view has come to my mind. “Cherish
分类:其他好文   时间:2016-02-15 22:44:01    阅读次数:206
Nginx日志切割脚本
#!/bin/bashif[-z$1];thenecho‘Usage:cutlog[logpath]‘elseif[!-e/data/wwwlogs/$(date-d"yesterday"+"%Y")/$(date-d"yesterday"+"%m")];thenmkdir-p/data/wwwlogs/$(date-d"yesterday"+"%Y")/$(date-d"yesterday"+"%m")finame=$(basename$1)y=$(date-d"-1day"+%Y-%m-%d)cp$1/d..
分类:其他好文   时间:2016-02-15 16:38:49    阅读次数:129
python切割nginx日志脚本
#!/usr/bin/envpython#-*-coding:utf-8-*-#Pythonnginxcutlog1importsubprocessdefmkdir():subprocess.call(‘mkdir-pv/usr/local/nginx/logs/$(date-d"yesterday"+"%Y")/$(date-d"yesterday"+"%m")/‘,shell=True)defmv():subprocess.call(‘mv/usr/local/nginx/logs/access.log/..
分类:编程语言   时间:2016-02-11 06:48:28    阅读次数:268
296句原味英语
1. I wasn't born yesterday.(我又不是三岁小孩)2. How do I address you?(我怎么称呼你)3. She turns me off.(她使我厌烦。)4. So far so good.(目前为止,一切都好。)5. Be my guest.(请便、别客气)...
分类:其他好文   时间:2016-01-12 15:27:51    阅读次数:148
linux_shell_获取日期相关
shell里直接调用系统变量 获取当天日期`date +%Y%m%d` 获取昨天日期`date -d yesterday +%Y%m%d` 获取前天日期`date -d -2day +%Y%m%d` 依次类推,你可以写一段shell 试验一下:d1=`date +%Y%m%d` d2=`date -...
分类:系统相关   时间:2015-11-26 14:44:29    阅读次数:201
Save Princess(丑数)
Save Princess时间限制:1000 ms | 内存限制:65535 KB难度:2描述Yesterday, the princess was kidnapped by a devil. The prince has to rescue our pretty princess."OK, if ...
分类:其他好文   时间:2015-11-12 20:07:47    阅读次数:370
linux下nginx日志切割
一、创建日志切割脚本nginx-log#!/bin/bash##零点执行该脚本##nginx日志文件所在的目录LOGS_PATH=/var/log/nginx/##获取昨天的yyyy-MM-ddYESTERDAY=$(date-d"yesterday"+%Y-%m-%d)##重命名日志文件mv${LOGS_PATH}/access.log${LOGS_PATH}/access_${YESTERDAY}.logmv${LOGS_PATH..
分类:系统相关   时间:2015-10-24 19:02:38    阅读次数:263
K - K.Bro Sorting
DescriptionMatt’s friend K.Bro is an ACMer.Yesterday, K.Bro learnt an algorithm: Bubble sort. Bubble sort will compare each pair of adjacent items and...
分类:其他好文   时间:2015-10-16 15:13:16    阅读次数:260
python-面向对象(指数对象举例)
class Index(object): def __init__(self,index_name,index_code,closePrice_yesterday,closePrice_today): self.index_code=index_code self....
分类:编程语言   时间:2015-10-14 17:21:54    阅读次数:242
271条   上一页 1 ... 16 17 18 19 20 ... 28 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!