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.Text; | |
using System.Threading; | |
using System.Runtime.InteropServices; | |
using Microsoft.Win32.SafeHandles; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Net.Sockets; | |
using System.Net; |
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.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApp1 | |
{ | |
using static Console; |
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 <thread> | |
#include <condition_variable> | |
#include <mutex> | |
#include <atomic> | |
#include <stdio.h> | |
#include <vector> | |
#include <chrono> | |
#include <Windows.h> | |
std::atomic<int> completed_count; |
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 <thread> | |
#include <condition_variable> | |
#include <mutex> | |
#include <atomic> | |
#include <stdio.h> | |
#include <vector> | |
#include <chrono> | |
std::condition_variable worker_start, worker_complete; | |
std::mutex worker_mutex, master_mutex; |
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 <thread> | |
#include <condition_variable> | |
#include <mutex> | |
#include <atomic> | |
#include <stdio.h> | |
#include <vector> | |
std::condition_variable worker_start, worker_complete; | |
std::mutex worker_mutex, master_mutex; | |
std::atomic<int> scheduled_task = 0; |
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
# Adblock Plus preferences | |
version=5 | |
[Subscription] | |
url=~fl~ | |
title=Ad Blocking Rules | |
defaults=blocking | |
[Subscription filters] | |
||lol.bash.org.ru^ |
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.Linq.Expressions; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Experiments | |
{ | |
class ExpressionUtil |
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
{$APPTYPE CONSOLE} | |
uses SysUtils; | |
var F: text; | |
T: text; | |
S: TSearchRec; | |
Zal4,Zal2: integer; | |
Z: array [1..4] of integer; |
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
const int N = 512; | |
Image<float> img1f(N, N), img2f(N, N); | |
Image<byte> img1b(N, N), img2b(N, N); | |
for (int j = 0; j < img1f.Height(); j++) | |
for (int i = 0; i < img1f.Width(); i++) | |
{ | |
img1f(i, j) = img2f(i, j) = 3 * i + j; | |
img1b(i, j) = img2b(i, j) = 3 * i + j; |