Skip to content

Instantly share code, notes, and snippets.

production:
services:
redisSession:
class: \Redis
setup:
- open(%redisSession.host%, %redisSession.port%, %redisSession.timeout%)
- auth(%redisSession.password%)
sessionStorage:
class: Socialbakers\Nette\RedisSessionStorage(@redisSession, 'sbks_market_sessions')
{
"id" : "170436956319816_581599695203538",
"story" : "Audi India added 17 new photos to the album Audi Ice Drive Experience – Switzerland and Sweden.",
"story_tags" : [[{
"id" : "170436956319816",
"name" : "Audi India",
"offset" : NumberLong(0),
"length" : NumberLong(10),
"type" : "page"
}]],
{
"id" : "150534708294627_576393192375441",
"story" : "\"Gaspard Smile simply dial *151#...\" on their own photo.",
"privacy" : {
"value" : ""
},
"type" : "status",
"created_time" : new Date("5.1.2013 18:37:19"),
"updated_time" : new Date("5.1.2013 18:37:19"),
"comments" : [],
{
"id" : "150534708294627_576393192375441",
"story" : "\"Gaspard Smile simply dial *151#...\" on their own photo.",
"privacy" : {
"value" : ""
},
"type" : "status",
"created_time" : new Date("5.1.2013 18:37:19"),
"updated_time" : new Date("5.1.2013 18:37:19"),
"comments" : [],
{
"query": {
"bool": {
"must": [
{
"term": {
"country": "CZ"
}
},
{
[37966154266.0, 255132680121.0, 171650949545171.0, 128458370734.0, 109806192369339.0, 140972719304814.0, 113130142095931.0, 65777593700.0, 299195905891.0, 273531189144.0, 76121703241.0, 112324635469995.0, 103076089787357.0, 70488720814.0, 116282456784.0, 243529649042349.0, 124186145755.0, 222190851130953.0, 169835113075956.0, 115899995153554.0, 129458713490.0, 68663174390.0, 131870960091.0, 116171061735236.0, 102933722750.0, 265155537991.0, 180613255303275.0, 119063861466791.0, 116914458334869.0, 107656279266511.0, 185993624774335.0, 132021646843962.0, 311354178979218.0, 206276076058224.0, 138479367229.0, 375613175807080.0, 271802586243334.0, 207842509241217.0, 176680289047154.0, 129725323321.0, 336328666439257.0, 206289479433535.0, 225063780921514.0, 90594467955.0, 124213364276291.0, 223516744375301.0, 229397500350.0, 154296237924063.0, 221119377898604.0, 120015012993.0, 188056814570909.0, 124800437547856.0, 119583541430459.0, 138671242395.0, 119857301430367.0, 120920371294050.0, 119026111453343.0, 140077966
[37966154266.0, 255132680121.0, 171650949545171.0, 128458370734.0, 109806192369339.0, 140972719304814.0, 113130142095931.0, 65777593700.0, 299195905891.0, 273531189144.0, 76121703241.0, 112324635469995.0, 103076089787357.0, 70488720814.0, 116282456784.0, 243529649042349.0, 124186145755.0, 222190851130953.0, 169835113075956.0, 115899995153554.0, 129458713490.0, 68663174390.0, 131870960091.0, 116171061735236.0, 102933722750.0, 265155537991.0, 180613255303275.0, 119063861466791.0, 116914458334869.0, 107656279266511.0, 185993624774335.0, 132021646843962.0, 311354178979218.0, 206276076058224.0, 138479367229.0, 375613175807080.0, 271802586243334.0, 207842509241217.0, 176680289047154.0, 129725323321.0, 336328666439257.0, 206289479433535.0, 225063780921514.0, 90594467955.0, 124213364276291.0, 223516744375301.0, 229397500350.0, 154296237924063.0, 221119377898604.0, 120015012993.0, 188056814570909.0, 124800437547856.0, 119583541430459.0, 138671242395.0, 119857301430367.0, 120920371294050.0, 119026111453343.0, 140077966
<!DOCTYPE html>
<html lang="en" class="no-js">
<head>
<style type="text/css">
thead{background:red}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
var pixelWidth = require('string-pixel-width').default;
var width = pixelWidth('My text ...', { size: 10 });
console.log('This text has width ' + width + 'px in the size of 10px.');
// "This text has width 43.5px in the size of 10px."
import semver from 'semver';
import { engines } from './package';
const version = engines.node;
if (!semver.satisfies(process.version, version)) {
console.log(`Required node version ${version} not satisfied with current version ${process.version}.`);
process.exit(1);
}