Warming up --------------------------------------
oga.simple 503.000 i/100ms
oga.xpath 677.000 i/100ms
oga.css 783.000 i/100ms
nokogiri.simple 450.000 i/100ms
nokogiri.xpath 145.000 i/100ms
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
class Foo | |
class << self | |
attr_accessor :boo | |
end | |
def initialize() | |
@@boo = "test" | |
end | |
def shared_boo |
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
{ "id": 954, "msg": "┾BBCKA┿ SpeedHunterR (Spitfire) поджёг SM.79", "sender": "", "enemy": false, "mode": "" }, | |
{ "id": 955, "msg": "┾BBCKA┿ SpeedHunterR (Spitfire) уничтожил [ии] SM.79", "sender": "", "enemy": false, "mode": "" }, | |
{ "id": 956, "msg": "=WingA= qlewer (Bf.109E) разбился", "sender": "", "enemy": false, "mode": "" }, | |
{ "id": 957, "msg": "=WingA= Vova_Nesterov (Ki-100) сбил ┾BBCKA┿ XaPaMaMbyPy (Spitfire)", "sender": "", "enemy": false, "mode": "" }, | |
{ "id": 958, "msg": "=WingA= Vova_Nesterov (Ki-100) поджёг ┾BBCKA┿ XaPaMaMbyPy (Spitfire)", "sender": "", "enemy": false, "mode": "" }, | |
{ "id": 959, "msg": "╊LUFT╋ RomAvenger (Bf.109G) поджёг СБ 2М", "sender": "", "enemy": false, "mode": "" }, | |
{ "id": 960, "msg": "╊LUFT╋ RomAvenger (Bf.109G) уничтожил [ии] СБ 2М", "sender": "", "enemy": false, "mode": "" }, | |
{ "id": 961, "msg": "=WingA= _hw (Ki-100) подбил ┾BBCKA┿ Karatel0194 (ЛаГГ-3)", "sender": "", "enemy": false, "mode": "" }, | |
{ "id": 962, "msg": "╊LUFT╋ Leha_Kosmonavt (Bf.109G) сбил ┾BBCKA┿ Karatel |
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
#!/usr/bin/env python | |
import multiprocessing | |
import bucky.statsd | |
import time | |
import timeit | |
try: | |
import queue | |
except ImportError: |
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
lazy = config_file.lazy | |
Benchmark.bm do |x| | |
x.report("online") { 100000.times { config_files.map { |f| File.mtime(f).to_i }.max } } | |
x.report("lazy") { 100000.times { lazy.map { |f| File.mtime(f).to_i }.max } } | |
end | |
user system total real | |
online 0.580000 0.450000 1.030000 ( 1.043045) | |
lazy 1.450000 0.490000 1.940000 ( 1.936203) |
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
#!/bin/sh -e | |
# Delete all stopped containers (including data-only containers). | |
docker ps -a -q --no-trunc --filter "status=exited" | xargs --no-run-if-empty docker rm -v | |
# Delete all tagged images more than a month old | |
# (will fail to remove images still used). | |
docker images --no-trunc --format '{{.ID}} {{.CreatedSince}}' | grep ' months' | awk '{ print $1 }' | xargs --no-run-if-empty docker rmi || true | |
# Delete all 'untagged/dangling' (<none>) images |
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
Show hidden characters
{ | |
// A boolean specifying if folders should automatically refresh and update the sidebar. | |
// In some builds, the sidebar does not refresh when contents of project folder are updated. | |
// This setting is required to refresh the sidebar in these circumstances. | |
// false by default | |
"auto_refresh_sidebar": true, | |
// A string specifying the type of auto completion to use. Valid values are | |
// "windows" or "nix" | |
"completion_type": "nix", |
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
Здравствуйте! Я — римский колонист! | |
Это мое ремесло. Так сложилось исторически. | |
Когда-то я колонизировал Иберию. Теперь там добывают свинец, золото и еще много полезного. Теперь там колонии с греческими школами и пунктами лекарей. Теперь там нельзя пить мочу на ритуалах, как это было до латинян... | |
Я колонизировал Германию. Ее леса я застроил колониями и дорогами. Германия делала высококлассные амфоры и монеты, славилась шкурами и воском. Меня попросили оттуда уйти. Теперь там добывают форель, а часть населения чистит конюшни гуннам... | |
Я колонизировал Сирию. В голых пустынях я построил дворцы, мастерские и сады. Лекарские пункты и амфитеатры. Там строили полиболы и ковали гладиусы, развивали античную культуру, выращивали пшеницу для всей империи. Меня попросили оттуда уйти. Теперь там развивают парфянское золото и выращивают белену, а часть населения уплыла служить в легионах бывшим колонизаторам... | |
Я колонизировал Элладу. Вместе с греками я мастерил триремы с греческим огнем, баллисты и онагры. Меня попро |
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
// | |
protected enum IntervalType { | |
UNKNOWN(0), | |
MINUTE(60, "minute", "m"), | |
HOUR(3600, "hour", "h"), | |
DAY(86400, "day", "d"), | |
WEEK(604800, "week", "w"), | |
MONTH(2592000, "month"), | |
YEAR(31104000, "year"); |
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
#------------------------------------------------------------------------------ | |
# | |
# RPM: file(1) magic for Red Hat Packages | |
# | |
0 beshort 0xedab | |
>2 beshort 0xeedb RPM | |
>>4 byte x v%d | |
>>6 beshort 0 bin | |
>>6 beshort 1 src | |
>>8 beshort 1 i386 |