т %!s(int64=8): %!d(string=назад) toJSON.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) toLength.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) toLower.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) toNumber.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) toPairs.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) toPairsIn.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) toPath.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) toPlainObject.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) toSafeInteger.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) toString.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) toUpper.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) transform.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) trim.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) trimEnd.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) trimStart.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) truncate.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) unary.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) unescape.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) union.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) unionBy.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) unionWith.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) uniq.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) uniqBy.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) uniqWith.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) uniqueId.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) unset.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) unzip.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) unzipWith.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) update.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) updateWith.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) upperCase.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) upperFirst.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) util.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) value.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) valueOf.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) values.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) valuesIn.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) without.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) words.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) wrap.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) wrapperAt.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) wrapperChain.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) wrapperLodash.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) wrapperReverse.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) wrapperValue.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) xor.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) xorBy.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) xorWith.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) zip.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) zipObject.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) zipObjectDeep.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад) zipWith.js 11e3a9652a first лет %!s(int64=8): %!d(string=назад)

README.md

lodash v4.17.5

The Lodash library exported as Node.js modules.

Installation

Using npm:

$ npm i -g npm
$ npm i --save lodash

In Node.js:

// Load the full build.
var _ = require('lodash');
// Load the core build.
var _ = require('lodash/core');
// Load the FP build for immutable auto-curried iteratee-first data-last methods.
var fp = require('lodash/fp');

// Load method categories.
var array = require('lodash/array');
var object = require('lodash/fp/object');

// Cherry-pick methods for smaller browserify/rollup/webpack bundles.
var at = require('lodash/at');
var curryN = require('lodash/fp/curryN');

See the package source for more details.

Note:
Install n_ for Lodash use in the Node.js < 6 REPL.

Support

Tested in Chrome 63-64, Firefox 57-58, IE 11, Edge 14, Safari 10-11, Node.js 4-9, & PhantomJS 2.1.1.
Automated browser & CI test runs are available.

tamron - Gogs: Go Git Service

Geen omschrijving

CronRunBehavior.class.php 2.7KB

    <?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK IT ] // +---------------------------------------------------------------------- // | Copyright (c) 2009 http://thinkphp.cn All rights reserved. // +---------------------------------------------------------------------- // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) // +---------------------------------------------------------------------- // | Author: liu21st <liu21st@gmail.com> // +---------------------------------------------------------------------- // $Id: CronRunBehavior.class.php 2616 2012-01-16 08:36:46Z liu21st $ class CronRunBehavior extends Behavior { protected $options = array( 'CRON_MAX_TIME'=>60, ); public function run(&$params) { // 锁定自动执行 $lockfile = RUNTIME_PATH.'cron.lock'; if(is_writable($lockfile) && filemtime($lockfile) > $_SERVER['REQUEST_TIME'] - C('CRON_MAX_TIME')) { return ; } else { touch($lockfile); } set_time_limit(1000); ignore_user_abort(true); // 载入cron配置文件 // 格式 return array( // 'cronname'=>array('filename',intervals,nextruntime),... // ); if(is_file(RUNTIME_PATH.'~crons.php')) { $crons = include RUNTIME_PATH.'~crons.php'; }elseif(is_file(CONF_PATH.'crons.php')){ $crons = include CONF_PATH.'crons.php'; } if(isset($crons) && is_array($crons)) { $update = false; $log = array(); foreach ($crons as $key=>$cron){ if(empty($cron[2]) || $_SERVER['REQUEST_TIME']>=$cron[2]) { // 到达时间 执行cron文件 G('cronStart'); include LIB_PATH.'Cron/'.$cron[0].'.php'; $_useTime = G('cronStart','cronEnd', 6); // 更新cron记录 $cron[2] = $_SERVER['REQUEST_TIME']+$cron[1]; $crons[$key] = $cron; $log[] = "Cron:$key Runat ".date('Y-m-d H:i:s')." Use $_useTime s\n"; $update = true; } } if($update) { // 记录Cron执行日志 Log::write(implode('',$log)); // 更新cron文件 $content = "<?php\nreturn ".var_export($crons,true).";\n?>"; file_put_contents(RUNTIME_PATH.'~crons.php',$content); } } // 解除锁定 unlink($lockfile); return ; } }