- Федеральный закон определяет основные понятия и термины, связанные с применением контрольно-кассовой техники.
- Контрольно-кассовая техника включает электронные вычислительные машины, компьютерные устройства и их комплексы.
- Фискальный накопитель - средство защиты фискальных данных, содержащее ключи фискального признака.
- Фискальный признак документа - информация, сформированная с использованием средств проверки фискального признака.
- Эксперт - физическое лицо, получившее дополнительное образование в области оценки соответствия контрольно-кассовой техники.
- Экспертная организация - организация, проводящая экспертизу моделей контрольно-кассовой техники и технических средств оператора фискальных данных.
- Реестр экспертных организаций включает организации, соответствующие требованиям законодательства Российской Федерации о применении контрольно-кассовой техники.
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
test_str = %w[ | |
userNAME_bla12 | |
@userNAME_bla12 | |
t.me/userNAME_bla12 | |
tg://resolv?domain=userNAME_bla12 | |
https://telegram.me/userNAME_bla12/2312313 | |
https://userNAME_bla12.t.me | |
] | |
regexes = { |
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
def jump_consistent_hash(key, num_buckets) | |
b = -1 | |
j = 0 | |
while j < num_buckets | |
b = j | |
key = (key * 2862933555777941757 + 1) % (2 ** 64) | |
j = ((b + 1) * (2 ** 31) / ((key >> 33) + 1)) % (2 ** 31) | |
end |
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
unsigned int FNV1aHash (char *buf) | |
{ | |
unsigned int hval = 0x811c9dc5; | |
while (*buf) | |
{ | |
hval ^= (unsigned int)*buf++; | |
hval *= FNV_32_PRIME; | |
} |
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
require 'uri' | |
require 'socket' | |
trap('SIGINT') { exit }; | |
Socket.tcp_server_loop(3000) do |conn| | |
sleep 0.5 | |
ts = "ts: #{Time.now.utc.to_i}\n" | |
puts ts | |
puts '-' * ts.size |
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
require 'json' | |
require 'dnsruby' | |
include Dnsruby | |
REC_TYPES = %w(A AAAA NS CNAME MX PTR TXT SOA SPF) | |
DEA_HOSTS = File.open('hosts.csv', 'r') | |
RESOLVER = Resolver.new | |
TMP_STORE = {} |
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
require "json" | |
struct Container | |
include JSON::Serializable | |
property a : Int32 | |
property b : String | |
property c : String | |
property d : String | |
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 Cocoon(T) | |
def initialize( | |
@result = Channel(T | Exception).new, | |
@output = Channel(T | Exception).new | |
) | |
end | |
def wrap(&block : -> T) forall T | |
spawn(name: "executor") do | |
@result.send block.call |
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
-- Copy from https://raw.githubusercontent.com/tarantool/examples/master/cookbook/space/in_batches.lua | |
local fiber = require('fiber') | |
local export = {} | |
--- Run several iterations in a single transaction | |
-- | |
-- This is useful in the following cases: | |
-- - improve the performance of write operations. Combining multiple operations |
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
# [...] | |
gem 'fog-openstack' # driver for OpenStack Swift v2.0 | |
gem 'non-digest-assets' # build assets without digest | |
# [...] |
NewerOlder