Skip to content

Instantly share code, notes, and snippets.

View likern's full-sized avatar
👨‍💻
Developing a new web service

Victor Malov likern

👨‍💻
Developing a new web service
  • @relladb
  • 01:52 (UTC +03:00)
View GitHub Profile
const std = @import("std");
const Allocator = std.mem.Allocator;
const expect = std.testing.expect;
pub const DatabaseVersion = packed struct {
major: u16,
minor: u16,
patch: u16,
};
const std = @import("std");
const expect = std.testing.expect;
const types = @import("./Types.zig");
const HashSize = types.HashSize;
const HashAlgorithm = types.HashAlgorithm;
pub const DatabaseVersion = packed struct {
major: u16,
minor: u16,
const std = @import("std");
const Allocator = std.mem.Allocator;
const expect = std.testing.expect;
//const utils = @import("utils");
const IOFileDescriptor = error{ NoValidFileDescriptor, NoValidFilePath };
const IOOffsetOverflow = error{Overflow};
const IOError = IOFileDescriptor || IOOffsetOverflow;
const std = @import("std");
const assert = std.debug.assert;
const expect = std.testing.expect;
const expectError = std.testing.expectError;
const Allocator = std.mem.Allocator;
const RingBuffer = @import("./RingBuffer.zig");
pub const QueueCreateError = std.mem.Allocator.Error;
pub const QueueEnqueueError = error{IsFull};
@likern
likern / KeyframeAnimation.tsx
Created December 16, 2021 14:30
Reanimated Layout Animation
import React, { useState } from 'react';
import { View, Button } from 'react-native';
import Animated, { Easing, Keyframe } from 'react-native-reanimated';
export function ReproductionAnimation(): React.ReactElement {
const [show, setShow] = useState(false);
const enteringAnimation = new Keyframe({
0: {
opacity: 0,
originY: 100,
@likern
likern / yarn-lint-pr.log
Created March 19, 2021 14:09
yarn lint command for react native pull request branch
[me@localhost new-react-native]$ yarn lint
yarn run v1.22.0
$ eslint .
/home/me/new-react-native/IntegrationTests/AppEventsTest.js
41:5 warning Do not use setState in componentDidMount react/no-did-mount-set-state
/home/me/new-react-native/Libraries/Animated/__tests__/Animated-test.js
139:5 warning Skipped test jest/no-disabled-tests
@likern
likern / yarn-lint.log
Created March 19, 2021 14:04
yarn lint for react-native master branch
[me@localhost test-react-native]$ yarn lint
yarn run v1.22.0
$ eslint .
/home/me/test-react-native/IntegrationTests/AppEventsTest.js
41:5 warning Do not use setState in componentDidMount react/no-did-mount-set-state
/home/me/test-react-native/Libraries/Animated/__tests__/Animated-test.js
139:5 warning Skipped test jest/no-disabled-tests
[Thu Mar 04 2021 21:20:47.190] LOG getMonthInterpolateConfig: {"start":24255,"end":24355,"height":40}
[Thu Mar 04 2021 21:20:47.246] LOG state: 0, velocity: 0
[Thu Mar 04 2021 21:20:47.264] LOG CalendarScrollableMonths: render!
[Thu Mar 04 2021 21:20:47.362] LOG state: 0, velocity: 0
[Thu Mar 04 2021 21:20:49.190] LOG state: 1, velocity: 0
[Thu Mar 04 2021 21:20:49.360] LOG state: 5, velocity: -11.105178833007812
[Thu Mar 04 2021 21:20:49.490] LOG state: 5, velocity: 28.733333587646484
[Thu Mar 04 2021 21:20:49.500] LOG state: 2, velocity: -65.48081970214844
[Thu Mar 04 2021 21:20:49.530] LOG state: 3, velocity: -65
[Thu Mar 04 2021 21:20:49.680] LOG state: 5, velocity: 12.736842155456543
[Tue Mar 02 2021 16:07:33.439] LOG velocity: 0, offset: 0
[Tue Mar 02 2021 16:07:33.455] LOG velocity: 0.008713597431778908, offset: 41.45454406738281
[Tue Mar 02 2021 16:07:33.470] LOG velocity: 45.07143020629883, offset: 270.9090881347656
[Tue Mar 02 2021 16:07:33.472] LOG velocity: -78.41270446777344, offset: 270.9090881347656
[Tue Mar 02 2021 16:07:33.474] LOG velocity: -78, offset: 270.9090881347656
[Tue Mar 02 2021 16:07:33.488] LOG velocity: 12.100000381469727, offset: 358.9090881347656
[Tue Mar 02 2021 16:07:33.515] LOG velocity: 22, offset: 494.9090881347656
[Tue Mar 02 2021 16:07:33.539] LOG velocity: 23.399999618530273, offset: 622.5454711914062
[Tue Mar 02 2021 16:07:33.541] LOG velocity: 25, offset: 749.8181762695312
[Tue Mar 02 2021 16:07:33.556] LOG velocity: 24.733333587646484, offset: 884.727294921875
function _G.dump(...)
local objects = vim.tbl_map(vim.inspect, {...})
print(unpack(objects))
end
vim.lsp.set_log_level("debug")
local cmd = vim.cmd
local fn = vim.fn
local g = vim.g