Skip to content

Instantly share code, notes, and snippets.

View vladimir-vg's full-sized avatar
🙂

Vladimir Gordeev vladimir-vg

🙂
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vladimir-vg
vladimir-vg / isomorphic_groups_order_3.ipynb
Created February 12, 2022 19:34
Find all non-isomorphic groups with 3 elements
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@vladimir-vg
vladimir-vg / ch2_4.10.ipynb
Created January 24, 2022 09:28
Michael Artin Algebra, Chapter 2, 4.10
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#include <iostream>
using namespace std;
class Matrix {
public:
int row = 0;
int column = 0;
// ты хранишь данные таблицы как массив указателей на массивы
// это значит что когда ты создаёшь новую матрицу,
// тебе нужно создавать новый массив, делать new.
-module(echo_server).
-behavior(gen_server).
-export([start_link/0]). % supervisor callback
-export([init/1, handle_call/3, handle_cast/2, handle_info/2]). % gen_server callbacks
-export([handler_loop/1]).
start_link() ->
gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).
@vladimir-vg
vladimir-vg / morpheus_sup.erl
Created July 8, 2017 19:28
espace demo 07-2017 erl modules
-module(morpheus_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).
-module(es_shell_io_server).
-behaviour(gen_server).
-export([start_link/1]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
-record(shell_io, {
collector_pid,
parent_pid,
% stale_timeout,
% stale_timer,
2015-08-11 18:41:31.405 <0.64.0> [TV1000_PREMIUM_HD] avcodec:407 SLAVE: Init aac encoder with options: [{b,128000},{channels,2},{sample_rate,48000},{input_channel_layout,<<"stereo">>},{input_sample_fmt,<<"s16p">>},{input_sample_rate,<<"48000">>}], user: []
2015-08-11 18:41:31.406 <0.65.0> [TV1000_PREMIUM_HD] avcodec:407 SLAVE: Init aac encoder with options: [{b,128000},{channels,2},{sample_rate,48000},{input_channel_layout,<<"5.1(side)">>},{input_sample_fmt,<<"fltp">>},{input_sample_rate,<<"48000">>}], user: []
2015-08-11 18:41:31.413 <0.2399.110> [TV1000_PREMIUM_HD] live_stream_frame:95 DTS forward jump: dts: 54640503 with delta 1740, next_dts: 1740, new delta: 54640503
2015-08-11 18:41:31.413 <0.2399.110> [TV1000_PREMIUM_HD] live_stream_frame:73 resynchronized time. last DTS: 1740, new DTS: 54640503, time delta: 8, new delta: -54638755
2015-08-11 18:41:31.478 <0.2373.110> [TV1000_PREMIUM_HD] mpegts_handler:143 PLAY MPEGTS from ip 192.168.122.1
2015-08-11 18:41:31.478 <0.2399.110> [TV1000_PREMIUM_HD] live_st
if(d->len == 0) return;
if(!d->buf) return;
ErlDrvTermData reply[] = {
ERL_DRV_ATOM, atom_udp,
ERL_DRV_PORT, driver_mk_port(d->port),
ERL_DRV_BINARY, (ErlDrvTermData)d->buf, (ErlDrvTermData)d->len, (ErlDrvTermData)0,
ERL_DRV_INT, (ErlDrvTermData)d->packet_count,
ERL_DRV_INT, (ErlDrvTermData)d->error_count,
ERL_DRV_TUPLE, 5
};