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.
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.
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
#include <iostream> | |
using namespace std; | |
class Matrix { | |
public: | |
int row = 0; | |
int column = 0; | |
// ты хранишь данные таблицы как массив указателей на массивы | |
// это значит что когда ты создаёшь новую матрицу, | |
// тебе нужно создавать новый массив, делать new. |
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
-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, [], []). |
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
-module(morpheus_sup). | |
-behaviour(supervisor). | |
-export([start_link/0]). | |
-export([init/1]). | |
start_link() -> | |
supervisor:start_link({local, ?MODULE}, ?MODULE, []). |
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
-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, |
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
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 |
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
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 | |
}; |
NewerOlder