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 | |
class TwigAPCuCache implements \Twig_CacheInterface | |
{ | |
/** | |
* {@inheritdoc} | |
*/ | |
public function generateKey($name, $className) | |
{ | |
$key = "$name;$className"; |
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
var koa = require('koa'); | |
var app = koa(); | |
var router = require('koa-router')(); | |
var util = require('util'); | |
var compress = require('koa-compress') | |
app | |
.use(compress({ | |
threshold: 5, | |
flush: require('zlib').Z_SYNC_FLUSH |
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
/** | |
* @module TimeStamp | |
* @todo Unit tests | |
*/ | |
'use strict'; | |
var moment = require('moment'); | |
/** | |
* @class | |
* @param {TimeStamp|string} [src] - A timestamp to parse |
NewerOlder