try
{
using (var fileStream = new FileStream("...", FileMode.Create))
{
// считывание
}
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
import java.awt.*; | |
import java.awt.image.BufferedImage; | |
import java.util.ArrayList; | |
import java.util.function.Function; | |
// Original StackOverflow answer: | |
// https://stackoverflow.com/a/38285167/11161744 | |
// Updated version applies blur independently for r, g, and b channels | |
class Blur { | |
public BufferedImage ProcessImage(Component c, BufferedImage image) { |
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 <stdio.h> | |
int main(void) { | |
int a; | |
int b; | |
int points_count = 1; | |
int in_triangles = 0; | |
int x; | |
int y; | |
double r2; |
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
import io.reactivex.rxjava3.core.*; | |
public class Main { | |
public static void main(String[] args) throws InterruptedException { | |
Flowable.fromArray(1, 2, 3, 4, 5) | |
.doOnNext((i) -> System.out.println("1: " + i)) | |
.map(i -> i + 1) | |
.doOnNext((i) -> System.out.println("2: " + i)) | |
.filter(i -> i % 2 != 0) | |
.doOnNext((i) -> System.out.println("3: " + i)) |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Sockets; | |
namespace DbTask | |
{ | |
interface IEntity | |
{ | |
long Id { get; } |